Skip to content

feat: Expand supported OTEL metrics#597

Merged
keelerm84 merged 8 commits intofeat/fdv2from
mk/sdk-2033/improved-metrics
Mar 19, 2026
Merged

feat: Expand supported OTEL metrics#597
keelerm84 merged 8 commits intofeat/fdv2from
mk/sdk-2033/improved-metrics

Conversation

@keelerm84
Copy link
Copy Markdown
Member

@keelerm84 keelerm84 commented Mar 16, 2026

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) and launchdarkly.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 RequestInfo and adding route, method, application.id, application.version, and instanceId dimensions; route sanitization now preserves slashes.

Upgrades telemetry/runtime plumbing by bumping to Go 1.25, updating go.opentelemetry.io/otel to v1.42.0, starting Go runtime metrics collection via otel/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.

@keelerm84 keelerm84 requested a review from a team as a code owner March 16, 2026 20:37
@keelerm84 keelerm84 requested a review from tanderson-ld March 16, 2026 20:37
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Comment thread internal/metrics/measures.go Outdated
@keelerm84 keelerm84 merged commit 5cba277 into feat/fdv2 Mar 19, 2026
22 of 27 checks passed
@keelerm84 keelerm84 deleted the mk/sdk-2033/improved-metrics branch March 19, 2026 17:00
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)
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