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 5d14e10
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 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
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@
resolved "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz"
integrity "sha1-u1BFecHK6SPmV2pPXaQ9Jfl729k= sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ=="

"@datadog/libdatadog@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@datadog/libdatadog/-/libdatadog-0.3.0.tgz#2fc1e2695872840bc8c356f66acf675da428d6f0"
integrity sha512-TbP8+WyXfh285T17FnLeLUOPl4SbkRYMqKgcmknID2mXHNrbt5XJgW9bnDgsrrtu31Q7FjWWw2WolgRLWyzLRA==
"@datadog/libdatadog@^0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@datadog/libdatadog/-/libdatadog-0.4.0.tgz#aeeea02973f663b555ad9ac30c4015a31d561598"
integrity sha512-kGZfFVmQInzt6J4FFGrqMbrDvOxqwk3WqhAreS6n9b/De+iMVy/NMu3V7uKsY5zAvz+uQw0liDJm3ZDVH/MVVw==

"@datadog/[email protected]":
version "8.4.0"
Expand Down

0 comments on commit 5d14e10

Please sign in to comment.