Skip to content

fix(otel): convert connection count metric to UpDownCounter#6

Merged
PavelPashov merged 1 commit intofeat/add-opentelemetry-metricsfrom
feat/add-opentelemetry-metrics-up-and-down-counters
Mar 25, 2026
Merged

fix(otel): convert connection count metric to UpDownCounter#6
PavelPashov merged 1 commit intofeat/add-opentelemetry-metricsfrom
feat/add-opentelemetry-metrics-up-and-down-counters

Conversation

@PavelPashov
Copy link
Owner

@PavelPashov PavelPashov commented Mar 23, 2026

Description

This PR updates the Redis OTel instrumentation to use the instrument types required by the OpenTelemetry database semantic conventions. Connection pool metrics are modeled as UpDownCounters rather than ObservableGauges, so db.client.connection.count and db.client.connection.pending_requests need to be updated.


Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

@PavelPashov PavelPashov merged commit 8957026 into feat/add-opentelemetry-metrics Mar 25, 2026
@PavelPashov PavelPashov deleted the feat/add-opentelemetry-metrics-up-and-down-counters branch March 25, 2026 09:14
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.

2 participants