Skip to content

Commit

Permalink
expose addSpanProcessor and getActiveSpanProcessor in tracer_provider
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho committed Jan 18, 2025
1 parent 4ef12fc commit b8125dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit b8125dd

Please sign in to comment.