Skip to content

Commit fff9f16

Browse files
committed
.
1 parent f893f12 commit fff9f16

File tree

1 file changed

+6
-9
lines changed
  • sentry_sdk/integrations/opentelemetry

1 file changed

+6
-9
lines changed

sentry_sdk/integrations/opentelemetry/scope.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from typing import Tuple, Optional, Generator, Dict, Any
2525
from typing_extensions import Unpack
2626

27-
from sentry_sdk._types import SamplingContext
2827
from sentry_sdk.tracing import TransactionKwargs
2928

3029

@@ -112,20 +111,18 @@ def _incoming_otel_span_context(self):
112111

113112
return span_context
114113

115-
def start_transaction(self, custom_sampling_context=None, **kwargs):
116-
# type: (Optional[SamplingContext], Unpack[TransactionKwargs]) -> POTelSpan
114+
def start_transaction(self, **kwargs):
115+
# type: (Unpack[TransactionKwargs]) -> POTelSpan
117116
"""
118117
.. deprecated:: 3.0.0
119118
This function is deprecated and will be removed in a future release.
120119
Use :py:meth:`sentry_sdk.start_span` instead.
121120
"""
122-
return self.start_span(custom_sampling_context=custom_sampling_context)
121+
return self.start_span(**kwargs)
123122

124-
def start_span(self, custom_sampling_context=None, **kwargs):
125-
# type: (Optional[SamplingContext], Any) -> POTelSpan
126-
return POTelSpan(
127-
**kwargs, custom_sampling_context=custom_sampling_context, scope=self
128-
)
123+
def start_span(self, **kwargs):
124+
# type: (Any) -> POTelSpan
125+
return POTelSpan(**kwargs, scope=self)
129126

130127

131128
_INITIAL_CURRENT_SCOPE = PotelScope(ty=ScopeType.CURRENT)

0 commit comments

Comments
 (0)