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

Update HTTP client span semconv to 1.27 #4940

Conversation

dyladan
Copy link
Member

@dyladan dyladan commented Aug 21, 2024

This updates the HTTP client semantic conventions to 1.27.

Client metrics and server spans and metrics to be done in follow-up PRs.

@dyladan dyladan marked this pull request as ready for review August 23, 2024 14:07
@dyladan dyladan requested a review from a team August 23, 2024 14:07
import { errorMonitor } from 'events';
import { SEMATTRS_HTTP_ROUTE } from '@opentelemetry/semantic-conventions';
import {
Copy link
Member Author

Choose a reason for hiding this comment

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

removed import *. None of these imports are actually new

Copy link

codecov bot commented Aug 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.04%. Comparing base (39ab59d) to head (2d60245).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4940      +/-   ##
==========================================
- Coverage   93.29%   91.04%   -2.26%     
==========================================
  Files          84       88       +4     
  Lines        1700     1954     +254     
  Branches      349      416      +67     
==========================================
+ Hits         1586     1779     +193     
- Misses        114      175      +61     

see 4 files with indirect coverage changes

Copy link
Member

@pichlermarc pichlermarc 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 working on this 🙂

AbhiPrasad pushed a commit to getsentry/sentry-javascript that referenced this pull request Sep 9, 2024
…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.
@pichlermarc pichlermarc added this pull request to the merge queue Sep 10, 2024
Merged via the queue into open-telemetry:main with commit f8ab559 Sep 10, 2024
19 checks passed
@pichlermarc pichlermarc deleted the http-client-semconv-span-stable branch September 10, 2024 13:51
Zirak pushed a commit to Zirak/opentelemetry-js that referenced this pull request Sep 14, 2024
Co-authored-by: Marc Pichler <[email protected]>
Co-authored-by: Mend Renovate <[email protected]>
Co-authored-by: Marc Pichler <[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.

4 participants