Skip to content

feat: add OpenTelemetry metrics implementation#2899

Merged
achingbrain merged 2 commits intomainfrom
feat/add-otel-metrics
Jan 7, 2025
Merged

feat: add OpenTelemetry metrics implementation#2899
achingbrain merged 2 commits intomainfrom
feat/add-otel-metrics

Conversation

@achingbrain
Copy link
Member

Adds a Metrics interface implementation that is powered by an OpenTelemetry backend.

It tracks the same metrics as @libp2p/prometheus-metrics but also supports the new function tracing added in #2898.

See the readme for a usage example.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@achingbrain achingbrain requested a review from a team as a code owner December 19, 2024 18:33
@achingbrain achingbrain force-pushed the feat/add-otel-metrics branch from a512fe4 to 76381a0 Compare December 19, 2024 18:40
Base automatically changed from feat/add-trace-function-to-metrics to main January 7, 2025 09:53
Adds a `Metrics` interface implementation that is powered by an
OpenTelemetry backend.

See the readme for a usage example.
@achingbrain achingbrain force-pushed the feat/add-otel-metrics branch from 76381a0 to dec8178 Compare January 7, 2025 10:11
@achingbrain achingbrain merged commit abe9bd1 into main Jan 7, 2025
34 checks passed
@achingbrain achingbrain deleted the feat/add-otel-metrics branch January 7, 2025 15:29
@achingbrain achingbrain mentioned this pull request Jan 7, 2025
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.

1 participant