We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3301011 commit 16a6058Copy full SHA for 16a6058
sentry_sdk/client.py
@@ -985,7 +985,7 @@ def _capture_metric(self, metric):
985
metric["span_id"] = span.span_id
986
else:
987
propagation_context = isolation_scope.get_active_propagation_context()
988
- if propagation_context:
+ if propagation_context and propagation_context.trace_id:
989
metric["trace_id"] = propagation_context.trace_id
990
991
if isolation_scope._user is not None:
0 commit comments