-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Traces host info metric #1689
Traces host info metric #1689
Conversation
pkg/export/otel/metrics.go
Outdated
@@ -536,6 +544,21 @@ func (mr *MetricsReporter) setupSpanMeters(m *Metrics, meter instrument.Meter) e | |||
return nil | |||
} | |||
|
|||
func (mr *MetricsReporter) setupHostInfoMeter(meter instrument.Meter) error { | |||
if !mr.cfg.SpanMetricsEnabled() || !mr.cfg.ServiceGraphMetricsEnabled() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is duplicate before invoking setupHostInfoMeter, but also is inconsistent. Shouldn't be:
if !mr.cfg.SpanMetricsEnabled() && !mr.cfg.ServiceGraphMetricsEnabled() {
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, you are right, I'll remove it.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1689 +/- ##
==========================================
+ Coverage 69.69% 69.86% +0.16%
==========================================
Files 209 209
Lines 20975 21047 +72
==========================================
+ Hits 14619 14704 +85
+ Misses 5654 5637 -17
- Partials 702 706 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Adds the traces host info metric export in Beyla for OTEL and Prometheus export to support host based pricing, for vendors that charge with that model.