@@ -946,9 +946,7 @@ def add_breadcrumb(self, crumb=None, hint=None, **kwargs):
946946 while len (self ._breadcrumbs ) > max_breadcrumbs :
947947 self ._breadcrumbs .popleft ()
948948
949- def start_transaction (
950- self , transaction = None , custom_sampling_context = None , ** kwargs
951- ):
949+ def start_transaction (self , transaction = None , ** kwargs ):
952950 # type: (Optional[Transaction], Optional[SamplingContext], Unpack[TransactionKwargs]) -> Union[Transaction, NoOpSpan]
953951 """
954952 Start and return a transaction.
@@ -974,7 +972,6 @@ def start_transaction(
974972
975973 :param transaction: The transaction to start. If omitted, we create and
976974 start a new transaction.
977- :param custom_sampling_context: The transaction's custom sampling context.
978975 :param kwargs: Optional keyword arguments to be passed to the Transaction
979976 constructor. See :py:class:`sentry_sdk.tracing.Transaction` for
980977 available arguments.
@@ -985,8 +982,6 @@ def start_transaction(
985982
986983 try_autostart_continuous_profiler ()
987984
988- custom_sampling_context = custom_sampling_context or {}
989-
990985 # if we haven't been given a transaction, make one
991986 transaction = Transaction (** kwargs )
992987
@@ -996,7 +991,6 @@ def start_transaction(
996991 "transaction_context" : transaction .to_json (),
997992 "parent_sampled" : transaction .parent_sampled ,
998993 }
999- sampling_context .update (custom_sampling_context )
1000994 transaction ._set_initial_sampling_decision (sampling_context = sampling_context )
1001995
1002996 if transaction .sampled :
0 commit comments