-
Notifications
You must be signed in to change notification settings - Fork 535
ref: Move otel scope out of integrations/opentelemetry/
#4276
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
ref: Move otel scope out of integrations/opentelemetry/
#4276
Conversation
…o ivana/potel/move-propagator
…o ivana/potel/move-propagator
…-scope-out-of-integrations
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## potel-base #4276 +/- ##
==============================================
+ Coverage 83.55% 83.59% +0.04%
==============================================
Files 144 144
Lines 14631 14631
Branches 2325 2325
==============================================
+ Hits 12225 12231 +6
+ Misses 1690 1683 -7
- Partials 716 717 +1
|
@@ -8,7 +8,7 @@ | |||
|
|||
# TODO-neel-potel make 2 scope strategies/impls and switch | |||
from sentry_sdk.scope import Scope as BaseScope | |||
from sentry_sdk.integrations.opentelemetry.scope import ( | |||
from sentry_sdk.opentelemetry.scope import ( | |||
PotelScope as Scope, |
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.
[question] are we considering renaming PotelScope
to Scope
?
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.
We could, but I'd leave it like this for now so that there's a distinction between the non-otel Scope and PotelScope.
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.
Eventually we'll merge both -- unless we need to keep both around for errors-only.
Moving stuff out of
integrations/opentelemetry/
step by step since there is no OpenTelemetry integration anymore -- it's part of the core SDK.This moves
sentry_sdk/integrations/opentelemetry/scope.py
->sentry_sdk/opentelemetry/scope.py
Ref #3853