UNPKG

@coralogix/browser

Version:

Official Coralogix SDK for browsers

18 lines (17 loc) 1.28 kB
import { CustomTracerIgnoredInstruments, GlobalSpan } from './custom-spans.types'; import { Tracer } from '@opentelemetry/sdk-trace-base'; import { Span } from '@opentelemetry/api'; export declare function addGlobalSpanByTraceId(traceId: string, globalSpan: GlobalSpan): void; export declare function getGlobalSpanByTraceId(traceId: string): GlobalSpan | undefined; export declare function clearGlobalSpanMap(): void; 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 isInstrumentationIgnored(instrumentationType: CustomTracerIgnoredInstruments): boolean; export declare function attachChildSpanToGlobalSpan(name: string): Span;