Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support OTel span.addLink, span.addLinks; add similar APIs to the APM agent API #4078

Merged
merged 4 commits into from
Jun 13, 2024

Conversation

trentm
Copy link
Member

@trentm trentm commented Jun 10, 2024

This also updates a few places for the new otel/api v1.9.0.

Refs: #4071 (the dependabot update doesn't get everything)
Refs: #4070
Refs: #4069
Refs: #4077 (a separate issue for this other new feature in otel/[email protected])
Refs: elastic/apm#870


@opentelemetry/[email protected] added support for span.addLink() and span.addLinks().
This updates our OTel bridge tracing support to work with those APIs.

This also adds public addLink() and addLinks() equivalent methods on our Transaction and Span APIs.
Note that the span links support still has limitations: only trace_id and span_id are sent/stored (no span link attributes, no 'tracestate' in the span context).

I created a separate issue for the other feature added to otel/[email protected].

…he APM agent API

This also updates a few places for the new otel/api v1.9.0.

Refs: #4071 (the dependabot update doesn't get everything)
Refs: #4070
Refs: #4069
Refs: #4077 (a separate issue for this other new feature in otel/[email protected])
@trentm trentm requested a review from david-luna June 10, 2024 22:28
@trentm trentm self-assigned this Jun 10, 2024
david-luna
david-luna previously approved these changes Jun 12, 2024
Copy link
Member

@david-luna david-luna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR. I went too quick bumping the OTEL API package :)

All looks good, just couple of comments about types

lib/instrumentation/generic-span.js Outdated Show resolved Hide resolved
lib/opentelemetry-bridge/OTelSpan.js Show resolved Hide resolved
@trentm trentm merged commit c884fc9 into main Jun 13, 2024
22 checks passed
@trentm trentm deleted the trentm/otel-api-update branch June 13, 2024 15:00
trentm added a commit that referenced this pull request Jun 13, 2024
…he APM agent API (#4078)

This also updates a few places for the new otel/api v1.9.0.

Refs: #4071 (the dependabot update doesn't get everything)
Refs: #4070
Refs: #4069
Refs: #4077 (a separate issue for this other new feature in otel/[email protected])
PeterEinberger pushed a commit to fpm-git/apm-agent-nodejs that referenced this pull request Aug 20, 2024
…he APM agent API (elastic#4078)

This also updates a few places for the new otel/api v1.9.0.

Refs: elastic#4071 (the dependabot update doesn't get everything)
Refs: elastic#4070
Refs: elastic#4069
Refs: elastic#4077 (a separate issue for this other new feature in otel/[email protected])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants