Skip to content

Updated deprecated OTel Resource attributes names and values to match changes from Effect-TS#5104 - #2

Merged
evelant merged 1 commit into
evelant:feat/sql-pglitefrom
nikelborm:fixed_deprecated_otel
Jun 26, 2025
Merged

evelant merged 1 commit into
evelant:feat/sql-pglitefrom
nikelborm:fixed_deprecated_otel

Conversation

@nikelborm

@nikelborm nikelborm commented Jun 26, 2025 •

Copy link
Copy Markdown

PR Description

Many of the OpenTelemetry Resource 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 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 of the new attribute names and values came out of this process (some of them were changed again) and are now considered stable.

deprecated SEMATTRS_DB_SYSTEM ("db.system")
-> incubated(unstable/experimental)+deprecated ATTR_DB_SYSTEM ("db.system")
-> stable ATTR_DB_SYSTEM_NAME ("db.system.name")

deprecated DBSYSTEMVALUES_POSTGRESQL ("postgresql")
-> incubated(unstable/experimental) DB_SYSTEM_VALUE_POSTGRESQL ("postgresql").
   It's not formally deprecated, meaning it doesn't have `@deprecated` JSDoc
   comment in `@opentelemetry/semantic-conventions` package, but effectively
   those are enum values of deprecated resource attribute `ATTR_DB_SYSTEM`
-> stable DB_SYSTEM_NAME_VALUE_POSTGRESQL ("postgresql")

deprecated SEMATTRS_DB_NAME ("db.name")
-> incubated(unstable/experimental)+deprecated ATTR_DB_NAME ("db.name")
-> stable ATTR_DB_NAMESPACE ("db.namespace")

plain string "server.address"
-> stable+uniform ATTR_SERVER_ADDRESS ("server.address")

plain string "server.port"
-> stable+uniform ATTR_SERVER_PORT ("server.port")

@evelant
evelant merged commit a497374 into evelant:feat/sql-pglite Jun 26, 2025
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.

2 participants