UNPKG

@coralogix/browser

Version:

Official Coralogix SDK for browsers

14 lines (13 loc) 933 B
import { CustomTracerIgnoredInstruments, GlobalSpan } from './custom-spans.types'; import { Tracer } from '@opentelemetry/sdk-trace-base'; import { Span } from '@opentelemetry/api'; export declare function setGlobalSpan(globalSpan: GlobalSpan): void; export declare function getGlobalSpan(): GlobalSpan; export declare function clearGlobalSpan(): void; export declare function setCustomTracer(customTracer: Tracer): void; export declare function getActiveCustomTracer(): Tracer; export declare function clearCustomTracer(): void; export declare function setCustomTracerIgnoredInstruments(ignoredInstruments: CustomTracerIgnoredInstruments[]): void; export declare function getCustomTracerIgnoredInstruments(): CustomTracerIgnoredInstruments[]; export declare function shouldAttachSpanToGlobalSpan(instrumentationType: CustomTracerIgnoredInstruments): boolean; export declare function attachChildSpanToGlobalSpan(name: string): Span;