From b8125dde1b5eae92a1cd8c2b736e20740e9beb58 Mon Sep 17 00:00:00 2001 From: Long Ho Date: Sat, 18 Jan 2025 17:58:04 -0500 Subject: [PATCH] expose addSpanProcessor and getActiveSpanProcessor in tracer_provider --- index.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/index.d.ts b/index.d.ts index 8984d02f81a..f47e6beacbb 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1920,6 +1920,17 @@ declare namespace tracer { * Register this tracer provider with @opentelemetry/api */ register(): void; + + /** + * Add a new SpanProcessor to this TracerProvider + * @param processor OpenTelemetry SpanProcessor + */ + addSpanProcessor(processor: otel.SpanProcessor): void; + + /** + * Returns the active SpanProcessor + */ + getActiveSpanProcessor(): otel.SpanProcessor | undefined; } /**