1 | import { Exception } from '@opentelemetry/api';
|
2 | /**
|
3 | * This interface defines a fallback to read a timeOrigin when it is not available on performance.timeOrigin,
|
4 | * this happens for example on Safari Mac
|
5 | * then the timeOrigin is taken from fetchStart - which is the closest to timeOrigin
|
6 | */
|
7 | export interface TimeOriginLegacy {
|
8 | timing: {
|
9 | fetchStart: number;
|
10 | };
|
11 | }
|
12 | /**
|
13 | * This interface defines the params that are be added to the wrapped function
|
14 | * using the "shimmer.wrap"
|
15 | */
|
16 | export interface ShimWrapped extends Function {
|
17 | __wrapped: boolean;
|
18 | __unwrap: Function;
|
19 | __original: Function;
|
20 | }
|
21 | /**
|
22 | * An instrumentation library consists of the name and optional version
|
23 | * used to obtain a tracer or meter from a provider. This metadata is made
|
24 | * available on ReadableSpan and MetricRecord for use by the export pipeline.
|
25 | * @deprecated Use {@link InstrumentationScope} instead.
|
26 | */
|
27 | export interface InstrumentationLibrary {
|
28 | readonly name: string;
|
29 | readonly version?: string;
|
30 | readonly schemaUrl?: string;
|
31 | }
|
32 | /**
|
33 | * An instrumentation scope consists of the name and optional version
|
34 | * used to obtain a tracer or meter from a provider. This metadata is made
|
35 | * available on ReadableSpan and MetricRecord for use by the export pipeline.
|
36 | */
|
37 | export interface InstrumentationScope {
|
38 | readonly name: string;
|
39 | readonly version?: string;
|
40 | readonly schemaUrl?: string;
|
41 | }
|
42 | /** Defines an error handler function */
|
43 | export declare type ErrorHandler = (ex: Exception) => void;
|
44 | //# sourceMappingURL=types.d.ts.map |
\ | No newline at end of file |