feat: Expand supported OTEL metrics#597
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
tanderson-ld
approved these changes
Mar 19, 2026
keelerm84
added a commit
that referenced
this pull request
Apr 3, 2026
Replaces the opencensus metrics implementation with opentelemetry, removes the deprecated "new connections" usage metric, and expands the supported OTEL metric instruments. Includes: - chore: Set next release as rc.1 (#578) - feat!: Switch opencensus for opentelemetry (#583) - feat: Remove "new connections" usage metric (#595) - chore: Clean up doc (#596) - feat: Expand supported OTEL metrics (#597)
keelerm84
added a commit
that referenced
this pull request
Apr 6, 2026
Replaces the opencensus metrics implementation with opentelemetry, removes the deprecated "new connections" usage metric, and expands the supported OTEL metric instruments. Includes: - chore: Set next release as rc.1 (#578) - feat!: Switch opencensus for opentelemetry (#583) - feat: Remove "new connections" usage metric (#595) - chore: Clean up doc (#596) - feat: Expand supported OTEL metrics (#597)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

BEGIN_COMMIT_OVERRIDE
feat: Track request durations
feat: Track ingested event bytes usage
feat: Add go runtime metrics
feat: Add application tags and instance id dimensions to metrics
END_COMMIT_OVERRIDE
Note
Medium Risk
Adds new middleware-based instrumentation and expands metric dimensions across all request paths, which can affect metric cardinality and performance. Also bumps the Go toolchain and OpenTelemetry dependencies, which may introduce compatibility/behavior changes at runtime.
Overview
Expands OTLP metrics coverage by adding
launchdarkly.relay.request.duration(histogram) andlaunchdarkly.relay.events.ingested.bytes(counter), and wiring them into the main request and events ingestion routes.Enriches metric attributes by standardizing per-request metadata into
RequestInfoand addingroute,method,application.id,application.version, andinstanceIddimensions; route sanitization now preserves slashes.Upgrades telemetry/runtime plumbing by bumping to Go
1.25, updatinggo.opentelemetry.io/oteltov1.42.0, starting Go runtime metrics collection viaotel/contrib, and updating docs to reflect the new metrics and Prometheus name mapping.Written by Cursor Bugbot for commit 707ad61. This will update automatically on new commits. Configure here.