Skip to content

Conversation

@RyabovNick
Copy link
Contributor

This PR changes the db.client.operation.duration histogram unit from a hard-coded "ms" to the unit defined by OpenTelemetry Semantic Conventions (semconv.DBClientOperationDurationUnit), which is seconds ("s"). This keeps otelpgx consistent with the spec and avoids downstream tooling mismatches (e.g., SLO calculations in Pyrra expecting seconds).

@costela costela requested a review from obitech September 16, 2025 08:14
@costela
Copy link
Member

costela commented Sep 16, 2025

LGTM; @obitech any thoughts?

Copy link
Member

@obitech obitech left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@obitech obitech merged commit 988d75e into exaring:main Sep 17, 2025
3 checks passed
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