Repository navigation
Updated deprecated OTel span attributes names and values - #5192
Merged
tim-smart merged 1 commit intoJul 15, 2025
Merged
Conversation
🦋 Changeset detectedLatest commit: 106a979 The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Author
|
This is reopened version of #5104 with new merge base |
1 of 5 tasks
tim-smart
reviewed
Jul 10, 2025
effect-bot
force-pushed
the
next-minor
branch
19 times, most recently
from
July 14, 2025 10:39
f2e1188 to
2e6f72b
Compare
nikelborm
force-pushed
the
fixed_deprecated_otel_attributes
branch
2 times, most recently
from
July 14, 2025 15:19
5d5d968 to
56b2b69
Compare
tim-smart
requested changes
Jul 14, 2025
nikelborm
force-pushed
the
fixed_deprecated_otel_attributes
branch
4 times, most recently
from
July 15, 2025 07:02
f3a5bbd to
e5c6755
Compare
tim-smart
approved these changes
Jul 15, 2025
Many of the attributes have undergone the process of deprecation not once, but twice. Most of the constants holding attribute names have been renamed. These are minor changes. Additionally, there were numerous changes to the attribute keys themselves. These changes can be considered major. In the `@opentelemetry/semantic-conventions` package, new attributes having ongoing discussion about them are going through a process called incubation, until a consensus about their necessity and form is reached. Otel team [recommends](https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv) devs to copy them directly into their code. Luckily, it's not necessary because all of the new attribute names and values came out of this process (some of them were changed again) and are now considered stable. | Package | Major attribute changes | Major value changes | | -------------------------- | ----------------------------------------------------------------------------- | --------------------------------- | | Clickhouse client | `db.system` -> `db.system.name` <br/> `db.name` -> `db.namespace` | | | MsSQL client | `db.system` -> `db.system.name` <br/> `db.name` -> `db.namespace` | `mssql` -> `microsoft.sql_server` | | MySQL client | `db.system` -> `db.system.name` <br/> `db.name` -> `db.namespace` | | | Pg client | `db.system` -> `db.system.name` <br/> `db.name` -> `db.namespace` | | | Bun SQLite client | `db.system` -> `db.system.name` | | | Node SQLite client | `db.system` -> `db.system.name` | | | React.Native SQLite client | `db.system` -> `db.system.name` | | | Wasm SQLite client | `db.system` -> `db.system.name` | | | SQLite Do client | `db.system` -> `db.system.name` | | | LibSQL client | `db.system` -> `db.system.name` | | | D1 client | `db.system` -> `db.system.name` | | | Kysely client | `db.statement` -> `db.query.text` | | | @effect/sql | `db.statement` -> `db.query.text` <br/> `db.operation` -> `db.operation.name` | |
tim-smart
force-pushed
the
fixed_deprecated_otel_attributes
branch
from
July 15, 2025 21:45
549ffcd to
106a979
Compare
tim-smart
added a commit
that referenced
this pull request
Jul 16, 2025
1 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
Why?
PR Description
Many of the OpenTelemetry Span attributes have undergone the process of deprecation not once, but twice. Most of the constants holding attribute names have been renamed. These are minor changes.
Additionally, there were numerous changes to the attribute keys themselves. These changes can be considered major.
In the
@opentelemetry/semantic-conventionspackage, new attributes having an ongoing discussion about them are going through a process called incubation, until a consensus about their necessity and form is reached. Otel team recommends devs to copy them directly into their code. Luckily, it's not necessary because all the new attribute names and values emerged from this process (some of which were subsequently changed) and are now considered stable.Packages that need a major version bump
Or since all their versions are like
0._._, I'm not sure if I'm using the correct term, but maybe it's a minor version bump?db.system->db.system.namedb.name->db.namespacedb.system->db.system.namedb.name->db.namespacemssql->microsoft.sql_serverdb.system->db.system.namedb.name->db.namespacedb.system->db.system.namedb.name->db.namespacedb.system->db.system.namedb.system->db.system.namedb.system->db.system.namedb.system->db.system.namedb.system->db.system.namedb.system->db.system.namedb.system->db.system.namedb.statement->db.query.textdb.statement->db.query.textdb.operation->db.operation.name(Expandable) Extended explanation of changes
Clickhouse client
MsSQL client
MySQL client
Pg client
Bun, Node, React.Native, Wasm, Do, LibSQL, and D1 SQLite clients
Kysely client
@effect/opentelemetry/Resource.ts
@effect/sql/statement.ts
... etc I've added a few more patch changes in the following commit, but I'm tired (I wrote the above description by hand) and don't care about writing such a detailed description anymore. Every other change that's left to mention here replaces strings with the same strings imported from the
@opentelemetry/semantic-conventionspackage.