ZipkinExporter Stuck Batch Fix#1726
Merged
Merged
Conversation
…nection. Fixed null activity events spamming when using SuppressInstrumentation.
eddynaka
reviewed
Jan 27, 2021
| if (!this.handler.SupportsNullActivity && Activity.Current == null) | ||
| { | ||
| InstrumentationEventSource.Log.NullActivity(value.Key); | ||
| if (!Sdk.SuppressInstrumentation) |
Contributor
There was a problem hiding this comment.
should we add this check inside the instrumentationEventSource? because we can forget if someone adds a new Log, no?
Member
Author
There was a problem hiding this comment.
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
|
CodeBlanch
commented
Jan 27, 2021
reyang
reviewed
Jan 28, 2021
reyang
reviewed
Jan 28, 2021
reyang
reviewed
Jan 28, 2021
cijothomas
approved these changes
Jan 28, 2021
cijothomas
left a comment
Member
There was a problem hiding this comment.
Lets add to changelog about this bugfix.
Member
Please update this to say BatchExportProcessor. |
Member
Author
|
@cijothomas Updated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
If ZipkinExporter can't connect to Zipkin service the batch will get suck and the underlying
CircularBufferwill continue to fill up.How To Reproduce
"UseExporter": "zipkin"and launch without running Zipkin, or an invalid URL for the service./weatherforecastroute to generate a span.Changes
Added a
DisposetoBatch<T>whichBatchExportProcessor<T>will now call.We no longer write the "NullActivity" event when
Sdk.SuppressInstrumentationis triggered.CHANGELOG.mdupdated for non-trivial changes