-
Notifications
You must be signed in to change notification settings - Fork 303
Supporting Baggage for Instrumentations used in Weblog Tests #8773
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
54cdafc
supporting baggage in weblog related instrumentations
mhlidd 16094c9
simplifying startSpan
mhlidd ed234d3
adding support for AzureFunctionsInstrumentation
mhlidd a7a35a6
cleanup
mhlidd 8a5c90f
updateing grizzly instrumentations
mhlidd aacc0a0
updating PR comments and addressing failing unit tests
mhlidd 2d3aed6
fixing ambiguous overloading tests
mhlidd 0968d40
logging
mhlidd 7a956f7
logging 2
mhlidd e2fb44c
spotless
mhlidd 6b9b6e1
spotlesS
mhlidd 0bb7df6
updating tests
mhlidd 9b14d97
PR comments
mhlidd 9cb9f80
Merge branch 'master' into mhlidd/migrate_tomcat_okhttp
mhlidd c2124fa
Merge branch 'master' into mhlidd/migrate_tomcat_okhttp
mhlidd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
import static datadog.trace.instrumentation.okhttp3.OkHttpClientDecorator.OKHTTP_REQUEST; | ||
import static datadog.trace.instrumentation.okhttp3.RequestBuilderInjectAdapter.SETTER; | ||
|
||
import datadog.context.Context; | ||
import datadog.trace.api.datastreams.DataStreamsContext; | ||
import datadog.trace.bootstrap.instrumentation.api.AgentScope; | ||
import datadog.trace.bootstrap.instrumentation.api.AgentSpan; | ||
|
@@ -31,7 +32,8 @@ public Response intercept(final Chain chain) throws IOException { | |
|
||
final Request.Builder requestBuilder = chain.request().newBuilder(); | ||
DataStreamsContext dsmContext = DataStreamsContext.fromTags(CLIENT_PATHWAY_EDGE_TAGS); | ||
defaultPropagator().inject(span.with(dsmContext), requestBuilder, SETTER); | ||
defaultPropagator() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI: I might refactor this part by introducing an |
||
.inject(Context.current().with(span).with(dsmContext), requestBuilder, SETTER); | ||
|
||
final Response response; | ||
try { | ||
|
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.