Skip to content

Commit bf93c59

Browse files
committed
more fixes
1 parent bc8bf63 commit bf93c59

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

sentry_sdk/traces.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def new_trace() -> None:
188188
189189
new_trace() doesn't start any spans on its own.
190190
"""
191+
sentry_sdk.get_isolation_scope().set_new_propagation_context()
191192
sentry_sdk.get_current_scope().set_new_propagation_context()
192193

193194

sentry_sdk/tracing_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ def _matches(rule: "Any", value: "Any") -> bool:
14951495
if _matches(rule, name):
14961496
return True
14971497

1498-
elif isinstance(rule, dict):
1498+
elif isinstance(rule, dict) and rule:
14991499
name_matches = True
15001500
attributes_match = True
15011501

tests/tracing/test_span_streaming.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ def test_set_span_origin(sentry_init, capture_envelopes):
853853
[
854854
# no regexes
855855
([], "/health", {}, False),
856+
([{}], "/health", {}, False),
856857
(["/health"], "/health", {}, True),
857858
(["/health"], "/health", {"custom": "custom"}, True),
858859
([{"name": "/health"}], "/health", {}, True),

0 commit comments

Comments
 (0)