Skip to content

Commit

Permalink
Update TraceProvider Constructors Typings (#4596)
Browse files Browse the repository at this point in the history
* update index.d.ts to include config object for TraceProvider constructor

* update typing
  • Loading branch information
khanayan123 authored and uurien committed Aug 13, 2024
1 parent 6565a07 commit ebc396b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1837,9 +1837,10 @@ declare namespace tracer {
/**
* Construct a new TracerProvider to register with @opentelemetry/api
*
* @param config Configuration object for the TracerProvider
* @returns TracerProvider A TracerProvider instance
*/
new(): TracerProvider;
new(config?: Record<string, unknown>): TracerProvider;

/**
* Returns a Tracer, creating one if one with the given name and version is
Expand Down

0 comments on commit ebc396b

Please sign in to comment.