Skip to content

Commit 96c5f06

Browse files
authored
Fix duration of httpstream and live debugger spans (#3821)
1 parent b7eb412 commit 96c5f06

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

ext/handlers_httpstreams.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ static php_stream *dd_stream_opener(
116116
}
117117

118118
if (span) {
119+
dd_trace_stop_span_time(span);
119120
ddtrace_clear_execute_data_span((zend_ulong)-2, true);
120121
}
121122

ext/live_debugger.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ static void dd_span_probe_end(zend_ulong invocation, zend_execute_data *execute_
263263
UNUSED(execute_data, retval, auxiliary);
264264

265265
if (dyn->span) {
266+
dd_trace_stop_span_time(dyn->span);
266267
ddtrace_clear_execute_data_span(invocation, true);
267268
}
268269
}

0 commit comments

Comments
 (0)