-
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
Semantic Convention Update: Tracking Issue #4572
Comments
@MSNev @pichlermarc I created this issue based on our conversation in the SIG meeting to help track the work required to update semantic conventions in otel-js. I believe the first and last few items here are generally uncontroversial, but I wanted to confirm the appropriate step is listed for keeping old semantic convention version intact. Some languages have a subdirectory of every semconv version as mentioned here. At some point we've also talked about rolling our own that essentially just adds the new attributes into new files to be additive to the existing package, instead of keeping whole packages for each version. Curious for feedback on the approach we want to take. |
I think a couple things could be improved in
|
Fixes #11755 OpenTelemetry restructured their http semantic conventions and declared them stable: https://opentelemetry.io/blog/2023/http-conventions-declared-stable/ This has unfortunately not been reflected in OpenTelemetry JS yet, blocked on them making everything backwards compat: open-telemetry/opentelemetry-js#4572 For now we can directly reference `http.request.method`, the replacement to `http.method`. When the OTEL SDK is finally updated to use proper conventions, we can avoid hard coding the string.
@JamieDanielson i'm working on updating the semconv. I'm not clear what the action item "Make copy of existing semantic conventions by adding suffix 1_7 (@opentelemetry/semantic-conventions-1_7), and update imports everywhere, as suggested on #4235 (comment)" is motivated by. Am I correct in assuming this requirement is gone now that all deprecated attributes are available? |
Take a peek here #4690 |
Note: I'm not strongly advocating this option over Dan's option in #4690 unless others think it worthwhile. Dan's PR beat me to an attempt to update the semconv package. I had been considering a semconv package that had separate entry points for each semconv version -- somewhat similar to what OTel Go is doing. E.g.:
The migration path would be:
Pros:
Cons:
Update (2024-05-23): open-telemetry/semantic-conventions#551 (comment) and a comment above from a .NET perspective, argues in favour of separate entry-points for each semconv version, FWIW. |
We talked about this in the SIG meeting but for posterity, yes, the deprecated attributes being available to us in the latest semantic conventions removes the need to have multiple packages. |
Hi @JamieDanielson thank you for driving this important topic! If I see correctly, there is more than a year of delay of adopting sematic conventions. For building and role out contents on top of changed fields, an envisioned time of arrival would be great to know! |
@juergen-walter #4690 merged yesterday, so the next release from this repo will include a semantic-conventions package with constants from the latest Sem Conv version. Now we need to work through each package, as appropriate, an update their usage for the newer semconv version. |
@juergen-walter the new semantic conventions package v1.27 is now released |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
Current Status
Current (latest) package of
@opentelemetry/semantic-conventions
uses semconv version v1.7.0, as seen inscripts/semconv/generate.sh
.There are breaking changes in semantic conventions over time, especially prominent in v1.21 with stabilized http attributes, so we want to update in a way that minimizes impact on end users and offers the environment variable option
OTEL_SEMCONV_STABILITY_OPT_IN
to allow specifying which attributes to use. See schema for 1.23.1 here that shows changes over time.Steps required for semantic convention update
Make copy of existing semantic conventions by adding suffix 1_7 (@opentelemetry/semantic-conventions-1_7
), and update imports everywhere, as suggested on #4235METRIC_
prefixopentelemetry.io
docs for potential changes neededNote: Import
@opentelemetry/semantic-conventions
for stable semantic conventions. Import@opentelemetry/semantic-conventions/incubating
for all semantic conventions, stable and unstable.The text was updated successfully, but these errors were encountered: