-
Notifications
You must be signed in to change notification settings - Fork 752
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
JaegerExporter GenerateServiceSpecificBatches option #1498
JaegerExporter GenerateServiceSpecificBatches option #1498
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1498 +/- ##
==========================================
- Coverage 81.25% 81.25% -0.01%
==========================================
Files 232 232
Lines 6312 6316 +4
==========================================
+ Hits 5129 5132 +3
- Misses 1183 1184 +1
|
While I understand the desire behind this config option, I still think it's a bad thing for the SDK to support the ability to generate misleading data. I provided more reasoning in the ticket #1388 (comment) |
@yurishkuro Did you see the images in the description? A thousand words, as they say. That test is mixing in instrumented and un-instrumented services. First one looks great, easy to understand, conveys a lot of meaning, shows relationships at a glance. The second one takes many more mental cycles to derive the same information. |
Yuri, does Jaeger only wish to support setups that have 100% tracing (all only in Jaeger)? |
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.
@@ -48,5 +48,20 @@ public class JaegerExporterOptions | |||
/// Gets or sets the tags that should be sent with telemetry. | |||
/// </summary> | |||
public IEnumerable<KeyValuePair<string, object>> ProcessTags { get; set; } | |||
|
|||
/// <summary> | |||
/// Gets or sets a value indicating whether or not a batch should be sent to the Jaeger agent for each service. Default value: true. |
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.
Given there is a concern that this causes exporter to send "incorrect" data, should we make this default to "false", so that SDK by default exports correct data. If a user want to send "incorrect" data to have better UI experience, let them explicitly opt-in to this behavior?
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 think the incorrect behavior should be removed altogether, without options to enable it. The Jaeger UI enhancement is already being added in jaegertracing/jaeger-ui#659
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'm going to verify everything works with the new Jaeger UI and then I'll open a PR to remove the hack. Question, is a note in CHANGELOG recommending users upgrade Jaeger UI to restore the functionality sufficient?
Fixes #1388.
Public API Changes
Makes the JaegerExporter batch behavior configurable by adding a new option:
Examples
GenerateServiceSpecificBatches = true
GenerateServiceSpecificBatches = false
TODOs
CHANGELOG.md
updated for non-trivial changes