diff --git a/packages/dd-trace/src/format.js b/packages/dd-trace/src/format.js index a9f6ca9b39c..8a142532229 100644 --- a/packages/dd-trace/src/format.js +++ b/packages/dd-trace/src/format.js @@ -149,6 +149,7 @@ function extractTags (trace, span) { extractError(trace, tags[tag]) } break + // to ensure any error set through otel.setStatus is still set even though otel.recordException has been called case 'setTraceError': trace.error = 1 break