-
Notifications
You must be signed in to change notification settings - Fork 777
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
Instrumentation to store context object into Activity.CustomProperty #1128
Merged
cijothomas
merged 16 commits into
open-telemetry:master
from
cijothomas:cijothomas/instrumentationfixes1
Aug 21, 2020
Merged
Changes from 11 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d243919
Modify instrumentations to populate context object only if Activity.I…
cijothomas 619f265
AspNetCore tests
cijothomas f6cd02b
Asp.Net tests
cijothomas 36b0a81
httpclient tet
cijothomas 7391a4c
httpwebrequest test
cijothomas 535d827
sqlclient tests
cijothomas c431a34
grpc test
cijothomas b738d20
changelog
cijothomas cc3cc32
move inside alldatarequested
cijothomas 8cfcc69
remove test which validate customproperty population in propagation o…
cijothomas c30a7c8
Merge branch 'master' into cijothomas/instrumentationfixes1
cijothomas b572f2d
cop caught
cijothomas 2c3858f
fix test
cijothomas 62ae091
Merge branch 'cijothomas/instrumentationfixes1' of https://github.com…
cijothomas 455acdc
Merge branch 'master' into cijothomas/instrumentationfixes1
cijothomas 0d4e0f7
Merge branch 'master' into cijothomas/instrumentationfixes1
cijothomas 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 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 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 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 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 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 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 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 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 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 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 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.
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.
In
HttpWebRequestActivitySource.netfx.cs
there is also Request & Response set, both beforeactivity.IsAllDataRequested
check. Did you leave them alone on purpose?I don't think that's necessarily a bad thing. I intentionally put them all outside of the check for anyone wanting to do advanced things. Something like... make a sampling decision based on the raw requests. Or maybe have their own ActivityListeners? Not saying we must do that, I just thought it was worth the perf 🤷
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.
I missed it. I prefer to keep everything inside AllDataRequested.
My general take is to follow what open telemetry spec suggests:
Samplers get a specific set of things - name, parentcontext, kind, initial attributes, links.
we don't want to provide more anything more, unless there is a strong reason to do it.
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.
btw - samplers dont get access to raw Actiivty itself, so even if someone want to make intelligent sampling decision, they wont be able to leverage this custom obj.
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.
Hah ok good point!