Skip to content

Commit 11c7ce1

Browse files
committed
wording
1 parent a9e2669 commit 11c7ce1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sentry_sdk/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

sentry_sdk/tracing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
)
4040
from sentry_sdk.tracing_utils import (
4141
get_span_status_from_http_code,
42-
_is_span_origin_disabled,
42+
_is_span_origin_excluded,
4343
)
4444
from 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:

sentry_sdk/tracing_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)