Skip to content

Commit 8c32833

Browse files
committed
remove custom trace_id, span_id setting
1 parent 87537f0 commit 8c32833

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

sentry_sdk/scope.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,14 +1196,6 @@ def _capture_log(
11961196

11971197
scope = self._merge_scopes(scope, scope_kwargs)
11981198

1199-
trace_context = scope.get_trace_context()
1200-
trace_id = trace_context.get("trace_id")
1201-
span_id = trace_context.get("span_id")
1202-
if trace_id is not None and log.get("trace_id") is None:
1203-
log["trace_id"] = trace_id
1204-
if span_id is not None and log.get("span_id") is None:
1205-
log["span_id"] = span_id
1206-
12071199
# If debug is enabled, log the log to the console
12081200
debug = client.options.get("debug", False)
12091201
if debug:
@@ -1228,13 +1220,6 @@ def _capture_metric(
12281220

12291221
scope = self._merge_scopes(scope, scope_kwargs)
12301222

1231-
trace_context = scope.get_trace_context()
1232-
trace_id = trace_context.get("trace_id")
1233-
span_id = trace_context.get("span_id")
1234-
metric["trace_id"] = trace_id or "00000000-0000-0000-0000-000000000000"
1235-
if span_id is not None:
1236-
metric["span_id"] = span_id
1237-
12381223
debug = client.options.get("debug", False)
12391224
if debug:
12401225
logger.debug(

0 commit comments

Comments
 (0)