-
Notifications
You must be signed in to change notification settings - Fork 862
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
Change the default port that the OTLP exporters point to. #2113
Change the default port that the OTLP exporters point to. #2113
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2113 +/- ##
=============================================
+ Coverage 0 85.33% +85.33%
- Complexity 0 2117 +2117
=============================================
Files 0 241 +241
Lines 0 8086 +8086
Branches 0 893 +893
=============================================
+ Hits 0 6900 +6900
- Misses 0 854 +854
- Partials 0 332 +332
Continue to review full report at Codecov.
|
@@ -111,8 +112,7 @@ private OtlpGrpcSpanExporter(ManagedChannel channel, long deadlineMs) { | |||
*/ | |||
@Override | |||
public CompletableResultCode export(Collection<SpanData> spans) { | |||
spansSeen.add( | |||
spans.size(), Labels.of("exporter", OtlpGrpcMetricExporter.class.getSimpleName())); | |||
spansSeen.add(spans.size(), Labels.of("exporter", OtlpGrpcSpanExporter.class.getSimpleName())); |
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.
Thanks for the fixes! While we're here, should we extract constants for constant labels?
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.
Though as an aside, after seeing some metrics code recently, I sort of wish constant labels could be specified when creating a meter instead of only when observing to save the tedium of always extracting constants to save allocation
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 was a feature in the API that we decided to remove from the API for now. It may very well come back later, but we wanted to limit the features pre-GA, I think.
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, I guess this could just be a constant for the labels instance, eh? Very happy to make that happen, either as a follow-up, or part of this PR.
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.
Either's fine with me this is approved :)
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.
easy enough to do, so I just amended this PR with the constant label extraction
b03b3fe
to
3d68ff9
Compare
Resolves #2110