[Http] Fix propagation issues#3828
Merged
CodeBlanch merged 14 commits intoopen-telemetry:mainfrom Oct 28, 2022
Merged
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3828 +/- ##
==========================================
- Coverage 87.42% 87.13% -0.30%
==========================================
Files 280 280
Lines 10767 10765 -2
==========================================
- Hits 9413 9380 -33
- Misses 1354 1385 +31
|
src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
alanwest
reviewed
Oct 27, 2022
test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs
Outdated
Show resolved
Hide resolved
test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs
Outdated
Show resolved
Hide resolved
test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs
Outdated
Show resolved
Hide resolved
| } | ||
| else | ||
| { | ||
| Assert.Single(exportedItems); |
Member
There was a problem hiding this comment.
For test case sample == true && createParentActivity == true shouldn't we expect nothing exported?
That is, the parent activity that is created is not sampled, right? So per the default ParentBasedSampler LocalParentNotSampled sampler defaults to AlwaysOff.
Member
Author
There was a problem hiding this comment.
That is, the parent activity that is created is not sampled, right?
It is fake sampled 🤣
parent = new Activity("parent")
.SetIdFormat(ActivityIdFormat.W3C)
.Start();
parent.TraceStateString = "k1=v1,k2=v2";
parent.ActivityTraceFlags = ActivityTraceFlags.Recorded; // <- Here
src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs
Outdated
Show resolved
Hide resolved
vishweshbankwar
approved these changes
Oct 28, 2022
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.
Changes
I was working on tests for #3793 and it seems we have a propagation bug:
What this change does is...
TODOs
CHANGELOG.mdupdated for non-trivial changes