mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-24 11:20:24 +08:00
39 lines
1.5 KiB
TypeScript
39 lines
1.5 KiB
TypeScript
import { isSpanContextValid, wrapSpanContext } from '../trace/spancontext-utils';
|
|
import { Tracer } from '../trace/tracer';
|
|
import { TracerProvider } from '../trace/tracer_provider';
|
|
import { deleteSpan, getSpan, getSpanContext, setSpan, setSpanContext } from '../trace/context-utils';
|
|
/**
|
|
* Singleton object which represents the entry point to the OpenTelemetry Tracing API
|
|
*/
|
|
export declare class TraceAPI {
|
|
private static _instance?;
|
|
private _proxyTracerProvider;
|
|
/** Empty private constructor prevents end users from constructing a new instance of the API */
|
|
private constructor();
|
|
/** Get the singleton instance of the Trace API */
|
|
static getInstance(): TraceAPI;
|
|
/**
|
|
* Set the current global tracer.
|
|
*
|
|
* @returns true if the tracer provider was successfully registered, else false
|
|
*/
|
|
setGlobalTracerProvider(provider: TracerProvider): boolean;
|
|
/**
|
|
* Returns the global tracer provider.
|
|
*/
|
|
getTracerProvider(): TracerProvider;
|
|
/**
|
|
* Returns a tracer from the global tracer provider.
|
|
*/
|
|
getTracer(name: string, version?: string): Tracer;
|
|
/** Remove the global tracer provider */
|
|
disable(): void;
|
|
wrapSpanContext: typeof wrapSpanContext;
|
|
isSpanContextValid: typeof isSpanContextValid;
|
|
deleteSpan: typeof deleteSpan;
|
|
getSpan: typeof getSpan;
|
|
getSpanContext: typeof getSpanContext;
|
|
setSpan: typeof setSpan;
|
|
setSpanContext: typeof setSpanContext;
|
|
}
|
|
//# sourceMappingURL=trace.d.ts.map
|