Skip to content

Add basic metrics to example server#499

Merged
tigrannajaryan merged 2 commits intoopen-telemetry:mainfrom
michel-laterman:enhancement/example-server-metrics
Mar 4, 2026
Merged

Add basic metrics to example server#499
tigrannajaryan merged 2 commits intoopen-telemetry:mainfrom
michel-laterman:enhancement/example-server-metrics

Conversation

@michel-laterman
Copy link
Copy Markdown
Contributor

Add the following metrics to the example server:

  • connections.active.count
  • connections.error.count

Metrics will be emitted to stdout if the -emit-metrics flag is used with the example server.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.67%. Comparing base (5574611) to head (0e62b94).
⚠️ Report is 26 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #499   +/-   ##
=======================================
  Coverage   81.67%   81.67%           
=======================================
  Files          27       27           
  Lines        2134     2134           
=======================================
  Hits         1743     1743           
  Misses        266      266           
  Partials      125      125           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread internal/examples/server/opampsrv/metrics.go
@tigrannajaryan tigrannajaryan merged commit 2a45fbc into open-telemetry:main Mar 4, 2026
11 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.

2 participants