-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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(otel): Upgrade @opentelemetry/semantic-conventions to 1.26.0 #13631
Conversation
SEMANTIC_ATTRIBUTE_SENTRY_OP, | ||
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, | ||
SEMANTIC_ATTRIBUTE_URL_FULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't totally remove SEMANTIC_ATTRIBUTE_URL_FULL
from core export because non-otel SDKs also use it, but maybe we should just hardcode the string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no strong opinions either way!
7885d49
to
c74742c
Compare
packages/nextjs/src/server/index.ts
Outdated
ATTR_HTTP_METHOD, | ||
ATTR_HTTP_REQUEST_METHOD, | ||
ATTR_HTTP_TARGET, | ||
} from '@opentelemetry/semantic-conventions/incubating'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little nervous about adding these subpath imports here.
Will this break bundling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't. Is this in their package exports? Do the cjs tests pass for older node versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah so this seems to break the jest tests hmm. Let me dig into why this is.
In 1.26.0 otel-js has updated the deprecations for the attributes based on the new changes to semantic conventions. They also changed the name of some exports, for example: `SEMATTRS_HTTP_ROUTE` -> `ATTR_HTTP_ROUTE`. Some exports names were not able to be changed because they are imported from a subpath export @opentelemetry/semantic-conventions/incubating. This subpath breaks some bundling setups, so we are unable to use it.
c74742c
to
899e6e6
Compare
I ended up changing this PR to remove the subpath exports. The change is less crazy now, so I'll merge in after CI passes. |
size-limit report 📦
|
resolves #13627
In 1.26.0 otel-js has updated the deprecations for the attributes based on the new changes to semantic conventions.
They also changed the name of some exports, for example:
SEMATTRS_HTTP_ROUTE
->ATTR_HTTP_ROUTE
. Some exports names were not able to be changed because they are imported from a subpath export @opentelemetry/semantic-conventions/incubating. This subpath breaks some bundling setups, so we are unable to use it.