Skip to content

Commit 2acef08

Browse files
committed
get rid of none attributes
1 parent 80427c6 commit 2acef08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sentry_sdk/integrations/opentelemetry/sampler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def should_sample(
114114

115115
parent_span_context = trace.get_current_span(parent_context).get_span_context()
116116

117+
attributes = attributes or {}
118+
117119
# No tracing enabled, thus no sampling
118120
if not has_tracing_enabled(client.options):
119121
return dropped_result(parent_span_context, attributes)

0 commit comments

Comments
 (0)