Skip to content

fix(redisotel-native): use metric definition from otel/semconv/v1.38.0#3731

Merged
ofekshenawa merged 3 commits into
redis:masterfrom
wzy9607:fix/otelmetricdef
Mar 12, 2026
Merged

fix(redisotel-native): use metric definition from otel/semconv/v1.38.0#3731
ofekshenawa merged 3 commits into
redis:masterfrom
wzy9607:fix/otelmetricdef

Conversation

@wzy9607

@wzy9607 wzy9607 commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

Uses the name, desc, unit of db.client.operation.duration, db.client.connection.count, db.client.connection.create_time, db.client.connection.wait_time, db.client.connection.pending_requests defined by otel/semconv/v1.38.0/dbconv.

The resolves the metric description part of #3730.


Note

Low Risk
Low-risk change limited to OpenTelemetry metric instrument creation/metadata; main impact is potential changes to metric descriptions/units (and thus downstream dashboards/alerts) while names should remain semconv-aligned.

Overview
Switches redisotel-native to use OpenTelemetry semconv/v1.38.0/dbconv definitions when creating key DB client metrics.

db.client.operation.duration, db.client.connection.count, db.client.connection.create_time, db.client.connection.wait_time, and db.client.connection.pending_requests now derive their name/description/unit (and histogram instruments via dbconv.New*) from semconv instead of locally-specified strings.

Written by Cursor Bugbot for commit bff657b. This will update automatically on new commits. Configure here.

@jit-ci

jit-ci Bot commented Mar 8, 2026

Copy link
Copy Markdown

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

Uses the name, desc, unit of `db.client.operation.duration`, `db.client.connection.count`, `db.client.connection.create_time`, `db.client.connection.wait_time`, `db.client.connection.pending_requests` defined by otel/semconv/v1.38.0/dbconv.
The resolves the metric description part of redis#3730.
@wzy9607 wzy9607 force-pushed the fix/otelmetricdef branch from e4f7e57 to 309d292 Compare March 8, 2026 07:19
@ndyakov

ndyakov commented Mar 9, 2026

Copy link
Copy Markdown
Member

cc @elena-kolevska and @ofekshenawa may want to look into this one

@ofekshenawa ofekshenawa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@ofekshenawa ofekshenawa merged commit 903b081 into redis:master Mar 12, 2026
33 checks passed
@wzy9607 wzy9607 deleted the fix/otelmetricdef branch May 1, 2026 04:19
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.

3 participants