-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into potel-base
- Loading branch information
Showing
23 changed files
with
279 additions
and
127 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,4 @@ executing | |
asttokens | ||
responses | ||
pysocks | ||
ipdb | ||
setuptools |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ def get_file_text(file_name): | |
|
||
setup( | ||
name="sentry-sdk", | ||
version="2.7.0", | ||
version="2.8.0", | ||
author="Sentry Team and Contributors", | ||
author_email="[email protected]", | ||
url="https://github.com/getsentry/sentry-python", | ||
|
@@ -131,6 +131,11 @@ def get_file_text(file_name): | |
"starlite": ["starlite>=1.48"], | ||
"tornado": ["tornado>=6"], | ||
}, | ||
entry_points={ | ||
"opentelemetry_propagator": [ | ||
"sentry=sentry_sdk.integrations.opentelemetry:SentryPropagator" | ||
] | ||
}, | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Web Environment", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import importlib | ||
import os | ||
from unittest.mock import patch | ||
|
||
from opentelemetry import propagate | ||
from sentry_sdk.integrations.opentelemetry import SentryPropagator | ||
|
||
|
||
def test_propagator_loaded_if_mentioned_in_environment_variable(): | ||
try: | ||
with patch.dict(os.environ, {"OTEL_PROPAGATORS": "sentry"}): | ||
importlib.reload(propagate) | ||
|
||
assert len(propagate.propagators) == 1 | ||
assert isinstance(propagate.propagators[0], SentryPropagator) | ||
finally: | ||
importlib.reload(propagate) |
Oops, something went wrong.