-
Notifications
You must be signed in to change notification settings - Fork 604
feat(wsgi): Migrate to span first #5988
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
+412
−105
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
282ba35
feat(asgi): Migrate away from event processor in span first
sentrivana e2484bd
fixes
sentrivana 51af434
Merge branch 'master' into ivana/migrate-asgi-event-processor
sentrivana 5c3174f
.
sentrivana b270e5a
.
sentrivana e93fd1b
.
sentrivana 7cde973
capture_items
sentrivana ef9e640
Merge branch 'master' into ivana/migrate-asgi-event-processor
sentrivana df3f3af
.
sentrivana babb3bd
.
sentrivana 75429dc
no annotatedvalues
sentrivana d9d7674
.
sentrivana 32e4191
.
sentrivana 5cecf97
more tests
sentrivana a39337b
Merge branch 'master' into ivana/migrate-asgi-event-processor
sentrivana 7fb4863
.
sentrivana 7490fe3
.
sentrivana c11e8f1
.
sentrivana 982d471
Merge branch 'master' into ivana/migrate-asgi-event-processor
sentrivana 10bf7c9
ruff
sentrivana 87d00e6
source is not default anymore
sentrivana 507306f
Merge branch 'master' into ivana/migrate-asgi-event-processor
sentrivana eebc385
mypy
sentrivana e388901
var name
sentrivana 77b9298
Merge branch 'master' into ivana/migrate-asgi-event-processor
sentrivana f33e407
feat(wsgi): Migrate WSGI integration to span first
sentrivana a2ff75c
fixes, more tests
sentrivana 6a8d60f
Merge branch 'master' into ivana/migrate-wsgi-to-span-first
sentrivana 86fd48a
dont set on scope
sentrivana 9648022
move imports
sentrivana 0d85002
.
sentrivana 54064a5
fix
sentrivana 94532f6
set server.port as int
sentrivana 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
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 |
|---|---|---|
|
|
@@ -714,7 +714,7 @@ def get_active_propagation_context(self) -> "PropagationContext": | |
| def set_custom_sampling_context( | ||
| self, custom_sampling_context: "dict[str, Any]" | ||
| ) -> None: | ||
| self.get_active_propagation_context()._set_custom_sampling_context( | ||
| self.get_current_scope().get_active_propagation_context()._set_custom_sampling_context( | ||
|
Contributor
Author
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. This change was necessary as we're now always starting spans, regardless of type (segment or child), on the current scope instead of the isolation scope, so we also need to use the propagation context from there. |
||
| custom_sampling_context | ||
| ) | ||
|
|
||
|
|
||
Oops, something went wrong.
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.
This is essentially a port of the event processor