Skip to content

Commit bdc44ce

Browse files
andor44LotharSee
authored andcommitted
Set the parent's ID, not ours
1 parent 28b4f6b commit bdc44ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ddtrace/contrib/flask/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _start_span(self, trace_id=None, parent_id=None):
9494
span_type=http.TYPE,
9595
)
9696
g.flask_datadog_span.trace_id = trace_id
97-
g.flask_datadog_span.span_id = parent_id
97+
g.flask_datadog_span.parent_id = parent_id
9898
except Exception:
9999
self.app.logger.exception("error tracing request")
100100

0 commit comments

Comments
 (0)