@coralogix/browser 2.8.6 → 2.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
1
  export declare const GLOBAL_SPAN_KEY = "__globalSpan__";
2
+ export declare const GLOBAL_SPAN_MAP_KEY = "__globalSpanMap__";
2
3
  export declare const CUSTOM_TRACER_KEY = "__customTracer__";
3
4
  export declare const CUSTOM_TRACER_IGNORED_INSTRUMENTS = "__customTracerIgnoredInstruments__";
@@ -1,6 +1,9 @@
1
1
  import { CustomTracerIgnoredInstruments, GlobalSpan } from './custom-spans.types';
2
2
  import { Tracer } from '@opentelemetry/sdk-trace-base';
3
3
  import { Span } from '@opentelemetry/api';
4
+ export declare function addGlobalSpanByTraceId(traceId: string, globalSpan: GlobalSpan): void;
5
+ export declare function getGlobalSpanByTraceId(traceId: string): GlobalSpan | undefined;
6
+ export declare function clearGlobalSpanMap(): void;
4
7
  export declare function setGlobalSpan(globalSpan: GlobalSpan): void;
5
8
  export declare function getGlobalSpan(): GlobalSpan;
6
9
  export declare function clearGlobalSpan(): void;
@@ -10,4 +13,5 @@ export declare function clearCustomTracer(): void;
10
13
  export declare function setCustomTracerIgnoredInstruments(ignoredInstruments: CustomTracerIgnoredInstruments[]): void;
11
14
  export declare function getCustomTracerIgnoredInstruments(): CustomTracerIgnoredInstruments[];
12
15
  export declare function shouldAttachSpanToGlobalSpan(instrumentationType: CustomTracerIgnoredInstruments): boolean;
16
+ export declare function isInstrumentationIgnored(instrumentationType: CustomTracerIgnoredInstruments): boolean;
13
17
  export declare function attachChildSpanToGlobalSpan(name: string): Span;
@@ -34,6 +34,7 @@ export declare class SessionManager extends SessionIdle {
34
34
  private clearSessionWhenIdle;
35
35
  private clearPrevSession;
36
36
  private clearSession;
37
+ private clearGlobalSpans;
37
38
  private clearSessionWithErrorMode;
38
39
  private handleRefreshedSessions;
39
40
  private createNewSession;
package/src/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.8.6";
1
+ export declare const SDK_VERSION = "2.8.8";