-
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
HTTP retries and redirects instrumentation #2756
HTTP retries and redirects instrumentation #2756
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2756 +/- ##
==========================================
+ Coverage 83.75% 83.79% +0.03%
==========================================
Files 251 251
Lines 8864 8879 +15
==========================================
+ Hits 7424 7440 +16
+ Misses 1440 1439 -1
|
test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs
Outdated
Show resolved
Hide resolved
…tivitySourceTests.netfx.cs Co-authored-by: Michael Maxwell <mike.ian.maxwell@gmail.com>
src/OpenTelemetry.Instrumentation.Http/HttpRequestMessageContextPropagation.cs
Outdated
Show resolved
Hide resolved
…xtPropagation.cs Co-authored-by: Michael Maxwell <mike.ian.maxwell@gmail.com>
retryCount = (int)previousRetryCount + 1; | ||
} | ||
|
||
// Suppressing activity started by HttpClient DiagnosticsHandler. |
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.
this section is a bit unclear without some examples and explanation.
some questions:
- Does httpClient diagnostichandler created a single Activity only, or does it create one for every retry?
- Which one are we stopping here.
- We are creating a new activity here - is it supposed to be the child of the original http client activity or is it expected to be its sibling (i.e same parent, likely that of the Asp.Net Core Request)
- Why do we explicitly set Activity.Current in line 108?
This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or Pushing will instruct the bot to automatically remove the label. This bot runs once per day. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Changes
This PR brings an implementation for HTTP retries and redirects proposed in opentelemetry-specification #2078.
It addresses a scenario which is in the scope for bringing the existing HTTP semantic conventions for tracing to an initial stable state, see related otep #174.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes