-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Added LeveledMeterProvider to telemetry setting #6173
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: chahatsagarmain <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6173 +/- ##
==========================================
+ Coverage 96.49% 96.51% +0.02%
==========================================
Files 354 354
Lines 20127 20134 +7
==========================================
+ Hits 19421 19433 +12
+ Misses 522 518 -4
+ Partials 184 183 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@mahadzaryab1 how will i propogate leveledmeterprovider where |
Yes, it will not be available in the context of v1 so a noop provider can be used there. |
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.
nice work - just a couple of nits
Signed-off-by: chahatsagarmain <[email protected]>
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.
lgtm but need to wait for @yurishkuro's approval
I don't think this is addressing all places
|
@yurishkuro (1) looks to be addressed in this PR. (3) and (4) are v1 components so we're passing in noop (https://github.com/jaegertracing/jaeger/blob/main/cmd/collector/app/handler/otlp_receiver.go#L71-L81). Is there anything else we can do for that? @chahatsagarmain for (2) We can pass the meter provider down from this constructor and into the grpc factory. |
Signed-off-by: chahatsagarmain <[email protected]>
Signed-off-by: chahatsagarmain <[email protected]>
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.
just one more comment
plugin/storage/grpc/factory.go
Outdated
metricsFactory metrics.Factory, | ||
logger *zap.Logger, | ||
host component.Host, | ||
meterProvider metric.MeterProvider, |
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.
Use the opportunity to simplify the signature:
metricsFactory metrics.Factory, | |
logger *zap.Logger, | |
host component.Host, | |
meterProvider metric.MeterProvider, | |
telset telemetry.Settings, |
Signed-off-by: chahat sagar <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]> Signed-off-by: chahat sagar <[email protected]>
Signed-off-by: chahatsagarmain <[email protected]>
plugin/storage/grpc/factory.go
Outdated
host component.Host, | ||
metricsFactory metrics.Factory, | ||
telset component.TelemetrySettings, |
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.
I meant Jaeger's internal telemetry.Settings
, which includes both host and metrics factory
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.
telset := telemetery.Setting{ Logger: s.telset.Logger, Host: host, Metrics: mf, LeveledMeterProvider: func(_ configtelemetry.Level) metric.MeterProvider { return s.telset.MeterProvider }, }
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.
can i pass meter provider like this ? or should i have a field to pass meter provider in function signature ?
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.
yes that's fine (ie to ignore the level)
Signed-off-by: chahatsagarmain <[email protected]>
@yurishkuro spm test is failing for recent prs |
Which problem is this PR solving?
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test