diff --git a/packages/opentelemetry-plugin-http/src/http.ts b/packages/opentelemetry-plugin-http/src/http.ts index 89e1d7520f1..142ac5f6894 100644 --- a/packages/opentelemetry-plugin-http/src/http.ts +++ b/packages/opentelemetry-plugin-http/src/http.ts @@ -441,6 +441,8 @@ export class HttpPlugin extends BasePlugin { if (hasParent === false && requireParent === true) { const spanContext = getExtractedSpanContext(context.active()) ?? plugin._emptySpanContext; + // TODO: Refactor this when a solution is found in + // https://github.com/open-telemetry/opentelemetry-specification/issues/530 span = new NoRecordingSpan(spanContext); } else { span = this._tracer