-
Notifications
You must be signed in to change notification settings - Fork 532
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
undici instrumentation does not set http.url
attribute
#2417
Comments
Ah, looking at this discussion, this is intensional? |
Ah yes, that's intentional. We made it use the latest (stable) semconv, and |
Core PR updating |
Ok, closing this since it's not a bug! |
…cing (#13485) This PR migrates the `nativeNodeFetchIntegration` to use `@opentelemetry/instrumentation-undici` instead of `opentelemetry-instrumentation-fetch-node`. The instrumentation is still exported as `nativeNodeFetchIntegration` and is named `NodeFetch` to ensure backwards compatibility and the tests pass ~~without changes~~. Note: One `nextjs-14` e2e test did need a change due to the new/differing attribute names. It's worth noting that `@opentelemetry/instrumentation-undici` [uses different attributes](open-telemetry/opentelemetry-js-contrib#2417 (comment)) from the latest semantic convention version vs what we are using and what's used by `opentelemetry-instrumentation-fetch-node`. It looks like the [http instrumentation is migrating to these too](open-telemetry/opentelemetry-js#4940) so some of the changes in this PR will ensure that the http instrumentation continues to work after these updates.
I've noticed that the undici instrumentation sets the
url.full
attribute but does not set thehttp.url
attribute which I would expect for HTTP client spans.It only sets these attributes:
opentelemetry-js-contrib/plugins/node/instrumentation-undici/src/undici.ts
Lines 178 to 185 in 9dc58af
The text was updated successfully, but these errors were encountered: