Skip to content

feat: Trilogy attribute semantic convention stability#2095

Merged
kaylareopelle merged 31 commits into
open-telemetry:mainfrom
hannahramadan:trilogy_semantic_stability
May 15, 2026
Merged

feat: Trilogy attribute semantic convention stability#2095
kaylareopelle merged 31 commits into
open-telemetry:mainfrom
hannahramadan:trilogy_semantic_stability

Conversation

@hannahramadan

@hannahramadan hannahramadan commented Mar 18, 2026

Copy link
Copy Markdown
Member

This PR is intended to assist in the transition from the old to new database semantic convention attribute names. Per the database semantic convention stability migration spec, users can set the environment variable OTEL_SEMCONV_STABILITY_OPT_IN to:

  • database to emit stable conventions only
  • database/dup to emit both old and the stable conventions
  • a blank env var—or a value not containing either of the above delimited with commas—will emit old conventions only

The agent is required to maintain this bridge for 6 months and may drop the environment variable in the next major version and emit only the stable database and networking conventions.

This approach was approved for HTTP migration in #1547

Changes (Old -> Stable):

  • db.system → db.system.name
  • net.peer.name → server.address
  • db.name → db.namespace
  • db.statement → db.query.text

Removed in stable:

  • db.user
  • db.instance.id
  • peer.service

Added in stable:

  • server.port
  • error.type
  • db.response.status_code

Comment thread helpers/mysql/lib/opentelemetry/helpers/mysql.rb Outdated
@hannahramadan hannahramadan changed the title feat: Trilogy semantic convention stability feat: Trilogy attribute semantic convention stability Apr 14, 2026
hannahramadan and others added 2 commits April 21, 2026 13:40
Co-authored-by: Robb Kidd <robb@thekidds.org>
Comment thread instrumentation/trilogy/.simplecov Outdated

@robbkidd robbkidd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it time?

Comment thread helpers/mysql/lib/opentelemetry/helpers/mysql.rb Outdated
hannahramadan and others added 2 commits May 15, 2026 10:49
…ogy/patches/dup/client.rb

Co-authored-by: Kayla Reopelle <87386821+kaylareopelle@users.noreply.github.com>
@kaylareopelle kaylareopelle added this pull request to the merge queue May 15, 2026
Merged via the queue into open-telemetry:main with commit 6e5784b May 15, 2026
27 checks passed
This was referenced May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants