-
Notifications
You must be signed in to change notification settings - Fork 765
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
Update diagnosticsource to rc1 #1203
Update diagnosticsource to rc1 #1203
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1203 +/- ##
==========================================
+ Coverage 78.73% 78.76% +0.03%
==========================================
Files 219 219
Lines 6300 6296 -4
==========================================
- Hits 4960 4959 -1
+ Misses 1340 1337 -3
|
options.Name, | ||
options.Kind, | ||
options.Tags, | ||
options.Links); | ||
|
||
var shouldSample = sampler.ShouldSample(samplingParameters); | ||
|
||
var activityDataRequest = shouldSample.Decision switch | ||
var activitySamplingResult = shouldSample.Decision switch |
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.
would this callback be called for legacy (http-in/out) DiagnosticSource instrumentations?
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 point!
I missed it. Let me add it to the other refactor on ActivitySourceAdapter (which deals with Activity created using DiagnosticSource methods)
Tracking here #1210
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 assuming legacy diagosticsources support will be fixed in #1210
@@ -6,6 +6,7 @@ | |||
<!-- | |||
<add key="Dotnet5" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json" /> | |||
--> | |||
<add key="Dotnet5" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json" /> |
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.
nit: Looks like the same entry is right above the new one (commented out).
Fixes #1212
Fixes #953
Lot of renamings.
Remove AutoGenerateRootContextTraceId as TraceId is always passed as additional parameter to Sample.
Attributes returned by Sampler are added to the Activity, if it gets created with all data.
Special thanks to Eddy who helped with Propagators test issues.
TODO (In separate PR)
Fix for 953 for legacy instrumentations. ActivitySourceAdapter must be changed to reflect the new capabilities. This will be addressed along with #1210 as an immediate follow up to this PR.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes