File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -981,7 +981,7 @@ def __init__(
981981 If `trace_propagation_targets` is not provided, trace data is attached to every outgoing request from the
982982 instrumented client.
983983
984- :param exclude_span_origins: An optional list of strings or regex patterns to exclude span creation based
984+ :param exclude_span_origins: An optional list of strings or regex patterns to disable span creation based
985985 on span origin. When a span's origin would match any of the provided patterns, the span will not be
986986 created.
987987
Original file line number Diff line number Diff line change 3939)
4040from sentry_sdk .tracing_utils import (
4141 get_span_status_from_http_code ,
42- _is_span_origin_disabled ,
42+ _is_span_origin_excluded ,
4343)
4444from sentry_sdk .utils import (
4545 _serialize_span_attribute ,
@@ -208,7 +208,7 @@ def __init__(
208208 not parent_span_context .is_valid or parent_span_context .is_remote
209209 )
210210
211- if not skip_span and _is_span_origin_disabled (origin ):
211+ if not skip_span and _is_span_origin_excluded (origin ):
212212 skip_span = True
213213
214214 if skip_span :
Original file line number Diff line number Diff line change @@ -689,7 +689,7 @@ def should_propagate_trace(client, url):
689689 return match_regex_list (url , trace_propagation_targets , substring_matching = True )
690690
691691
692- def _is_span_origin_disabled (origin ):
692+ def _is_span_origin_excluded (origin ):
693693 # type: (Optional[str]) -> bool
694694 """
695695 Check if spans with this origin should be ignored based on the `exclude_span_origins` option.
You can’t perform that action at this time.
0 commit comments