Skip to content

Commit 50dc37a

Browse files
ref: Correct api.start_transaction method signature (#2905)
Adds the instrumenter argument to sentry_sdk.start_transaction. Should unblock #2865.
1 parent c06bf06 commit 50dc37a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sentry_sdk/api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from sentry_sdk import tracing_utils, Client
55
from sentry_sdk._types import TYPE_CHECKING
6+
from sentry_sdk.consts import INSTRUMENTER
67
from sentry_sdk.scope import Scope, _ScopeManager, new_scope, isolation_scope
78
from sentry_sdk.tracing import NoOpSpan, Transaction
89

@@ -282,10 +283,13 @@ def start_span(
282283
@scopemethod
283284
def start_transaction(
284285
transaction=None, # type: Optional[Transaction]
286+
instrumenter=INSTRUMENTER.SENTRY, # type: str
285287
**kwargs, # type: Unpack[StartTransactionKwargs]
286288
):
287289
# type: (...) -> Union[Transaction, NoOpSpan]
288-
return Scope.get_current_scope().start_transaction(transaction, **kwargs)
290+
return Scope.get_current_scope().start_transaction(
291+
transaction, instrumenter, **kwargs
292+
)
289293

290294

291295
def set_measurement(name, value, unit=""):

0 commit comments

Comments
 (0)