-
Notifications
You must be signed in to change notification settings - Fork 821
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
@opentelemetry/semantic-conventions deprecated warnings point to missing exports #5025
Comments
Hi @tmcw, thanks for reaching out. Looks like we're missing a mention that the |
That seems incorrect as well:
|
@pichlermarc can I work on this issue as a beginner? |
@Annosha thanks for reaching out. I'd say this issue is not very beginner friendly as all of that code is auto-generated - the generation of this is rather involved with custom tooling built around the semantic-conventions repo. |
It looks in this deprecated warning we could update our deprecated message to use the actual attribute variable ( |
There are two stages of deprecation here in 1.x versions of 0.xBefore 1.x there was 0.x, which exported a handful of big namespace-type objects: exports.SemanticAttributes = {
AWS_LAMBDA_INVOKED_ARN: 'aws.lambda.invoked_arn',
DB_SYSTEM: 'db.system',
... I only point this out for history. early 1.xStarting with 1.0.0 these large namespace-type objects were turned into flat consts -- to facilitate tree-shaking for smaller bundles for web usage, mainly. Effectively: exports.SEMATTRS_HTTP_URL = 'http.url';
...
exports.SEMRESATTRS_SERVICE_NAME = 'service.name'; later 1.xLater 1.x did a few things (#4690):
So:
They are two different kind of deprecations: 1. a JS package export-deprecation and 2. a semconv-deprecation. optionsFirst, I think we'd want to update the templates to have the Second, to update the deprecation messages for
I think I'm in favour of option 1. There are two things going on here. Directing a user directly from |
I was playing a bit. Take this excerpt from "semantic-conventions/src/experimental_attributes.ts": /**
* Deprecated, use `url.full` instead.
*
* @example https://www.foo.bar/search?q=OpenTelemetry#SemConv
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*
* @deprecated Replaced by `url.full`. See {@link ATTR_URL_FULL}, {@link ATTR_HTTP_TARGET}.
*/
export const ATTR_HTTP_URL = 'http.url' as const; I added the However the Still, it might be useful for us to do this. |
FWIW, the limitation in linking to some export in another file is discussed here: https://stackoverflow.com/questions/68611099/vscode-only-renders-jsdoc-link-to-another-file-when-symbol-is-imported |
…nstants This updates the '@deprecated ...' message for some of the old constants where they referred to constants that now no longer exist, because they where themselves deprecated or removed. This is a partial fix for open-telemetry#5025
#5160 is a first change for this. It updates refs in |
What happened?
Steps to Reproduce
Playground: https://www.typescriptlang.org/play/?ssl=4&ssc=1&pln=4&pc=21#code/JYWwDg9gTgLgBAKjgQwM4pjK6BmUIhwBEAAhGAKYB2MFANhSBVgJ4D0qjyNwAxgLS8IVAG7UYwYaiIBuAFBzkmbADoAygFEAsgEEAKnoBKagPoAJAwAUTAVUMAZeUqyoV+o+au2HMoA
Expected Result
If something has a deprecation message with a recommended updated strategy, that strategy should exist.
Actual Result
It doesn't.
Additional Details
OpenTelemetry Setup Code
package.json
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: