From cb1e93319d807d291bd6b6cfe85f56027f7a06a8 Mon Sep 17 00:00:00 2001 From: vmarchaud Date: Sat, 2 May 2020 15:17:31 +0200 Subject: [PATCH] chore: add TODO comment --- packages/opentelemetry-plugin-http/src/http.ts | 2 ++ 1 file changed, 2 insertions(+) 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