Skip to content

refactor(opentelemetry_redix): align with Redis database SemConv#660

Open
yordis wants to merge 1 commit intoopen-telemetry:mainfrom
yordis:yordis/redix-1
Open

refactor(opentelemetry_redix): align with Redis database SemConv#660
yordis wants to merge 1 commit intoopen-telemetry:mainfrom
yordis:yordis/redix-1

Conversation

@yordis
Copy link
Copy Markdown
Member

@yordis yordis commented Apr 9, 2026

  • Replaces deprecated db.system, db.operation, db.statement, net.peer.name/port with current SemConv: db.system.name, db.operation.name, db.query.text, server.address, server.port
  • Omits server.port when it equals the Redis default (6379)
  • Adds db_namespace option mapping to db.namespace attribute
  • Improves pipeline span naming from "pipeline" to "PIPELINE GET SET ..."
  • Adds db.operation.batch_size for pipeline commands
  • Adds db.response.status_code and error.type on Redis errors
  • Detaches telemetry handler in test teardown to prevent cross-test leakage

- Replaces deprecated `db.system`, `db.operation`, `db.statement`, `net.peer.name/port`
  with current SemConv: `db.system.name`, `db.operation.name`, `db.query.text`,
  `server.address`, `server.port`
- Omits `server.port` when it equals the Redis default (6379)
- Adds `db_namespace` option mapping to `db.namespace` attribute
- Improves pipeline span naming from `"pipeline"` to `"PIPELINE GET SET ..."`
- Adds `db.operation.batch_size` for pipeline commands
- Adds `db.response.status_code` and `error.type` on Redis errors
- Detaches telemetry handler in test teardown to prevent cross-test leakage

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
@yordis yordis marked this pull request as ready for review April 9, 2026 18:24
@yordis yordis requested a review from a team as a code owner April 9, 2026 18:24
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.

1 participant