-
Notifications
You must be signed in to change notification settings - Fork 772
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
ZipkinExporter Stuck Batch Fix #1726
ZipkinExporter Stuck Batch Fix #1726
Conversation
…nection. Fixed null activity events spamming when using SuppressInstrumentation.
@@ -41,7 +41,11 @@ public void OnNext(KeyValuePair<string, object> value) | |||
{ | |||
if (!this.handler.SupportsNullActivity && Activity.Current == null) | |||
{ | |||
InstrumentationEventSource.Log.NullActivity(value.Key); | |||
if (!Sdk.SuppressInstrumentation) |
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.
should we add this check inside the instrumentationEventSource? because we can forget if someone adds a new Log, no?
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.
Good question. If you look at this method there are 4 or 5 SuppressInstrumentation
checks inside it. Smells like it could use a bit of cleanup. /cc @alanwest
Codecov Report
@@ Coverage Diff @@
## main #1726 +/- ##
==========================================
+ Coverage 82.44% 82.50% +0.05%
==========================================
Files 250 250
Lines 6797 6803 +6
==========================================
+ Hits 5604 5613 +9
+ Misses 1193 1190 -3
|
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.
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.
Lets add to changelog about this bugfix.
Please update this to say BatchExportProcessor. |
@cijothomas Updated |
Description
If ZipkinExporter can't connect to Zipkin service the batch will get suck and the underlying
CircularBuffer
will continue to fill up.How To Reproduce
"UseExporter": "zipkin"
and launch without running Zipkin, or an invalid URL for the service./weatherforecast
route to generate a span.Changes
Added a
Dispose
toBatch<T>
whichBatchExportProcessor<T>
will now call.We no longer write the "NullActivity" event when
Sdk.SuppressInstrumentation
is triggered.CHANGELOG.md
updated for non-trivial changes