Skip to content

Commit 0f1d5e9

Browse files
committed
formatting
1 parent 3a3357c commit 0f1d5e9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

sentry_sdk/integrations/opentelemetry/sampler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ def dropped_result(parent_span_context, attributes, sample_rate=None):
5757
if sample_rate and TRACESTATE_SAMPLE_RATE_KEY not in trace_state:
5858
trace_state = trace_state.add(TRACESTATE_SAMPLE_RATE_KEY, str(sample_rate))
5959

60-
is_root_span = not (parent_span_context.is_valid and not parent_span_context.is_remote)
60+
is_root_span = not (
61+
parent_span_context.is_valid and not parent_span_context.is_remote
62+
)
6163
if is_root_span:
6264
# Tell Sentry why we dropped the transaction/root-span
6365
client = sentry_sdk.get_client()

tests/test_monitor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ def test_transaction_uses_downsample_rate(
9494
assert Counter(record_lost_event_calls) == Counter(
9595
[
9696
(
97-
"backpressure",
98-
"transaction",
99-
None,
100-
1,
97+
"backpressure",
98+
"transaction",
99+
None,
100+
1,
101101
),
102102
(
103103
"backpressure",

0 commit comments

Comments
 (0)