Skip to content

feat: MySQL2 semantic convention stability migration#1621

Closed
hannahramadan wants to merge 15 commits intoopen-telemetry:mainfrom
hannahramadan:mysql2_semantic_convention_stability
Closed

feat: MySQL2 semantic convention stability migration#1621
hannahramadan wants to merge 15 commits intoopen-telemetry:mainfrom
hannahramadan:mysql2_semantic_convention_stability

Conversation

@hannahramadan
Copy link
Copy Markdown
Member

@hannahramadan hannahramadan commented Aug 9, 2025

This PR is intended to assist in the transition from the old to new database semantic conventions. Per the database semantic convention stability migration spec, users should be able to 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 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:

  • db.system -> db.system.name
  • net.peer.name -> server.address
  • net.peer.port -> server.port
  • db.name -> db.namespace
  • db.statement -> db.query.text

Added:

  • error.type
  • db.response.status_code
  • server.port (if not default)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 9, 2025

👋 This pull request has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the keep label to hold stale off permanently, or do nothing. If you do nothing this pull request will be closed eventually by the stale bot

@github-actions github-actions Bot added the stale Marks an issue/PR stale label Sep 9, 2025
@kaylareopelle kaylareopelle added keep Ensures stale-bot keeps this issue/PR open blocked and removed stale Marks an issue/PR stale labels Sep 16, 2025
@hannahramadan hannahramadan marked this pull request as draft March 17, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked instrumentation-mysql2 keep Ensures stale-bot keeps this issue/PR open

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants