File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
integrations/opentelemetry Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -566,7 +566,7 @@ def _prepare_event(
566
566
if event .get ("exception" ):
567
567
DedupeIntegration .reset_last_seen ()
568
568
569
- event = new_event
569
+ event = new_event # type: Optional[Event] # type: ignore[no-redef]
570
570
571
571
before_send_transaction = self .options ["before_send_transaction" ]
572
572
if (
Original file line number Diff line number Diff line change 14
14
15
15
if TYPE_CHECKING :
16
16
from typing import Optional
17
+ from contextvars import Token
17
18
import sentry_sdk .integrations .opentelemetry .scope as scope
18
19
19
20
20
21
class SentryContextVarsRuntimeContext (ContextVarsRuntimeContext ):
21
22
def attach (self , context ):
22
- # type: (Context) -> object
23
+ # type: (Context) -> Token[Context]
23
24
scopes = get_value (SENTRY_SCOPES_KEY , context )
24
25
25
26
should_fork_isolation_scope = context .pop (
You can’t perform that action at this time.
0 commit comments