UNPKG

1.13 kBTypeScriptView Raw
1import { 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 */
7export 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 */
16export interface ShimWrapped extends Function {
17 __wrapped: boolean;
18 __unwrap: Function;
19 __original: Function;
20}
21/**
22 * An instrumentation library consists of the name and 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 */
26export interface InstrumentationLibrary {
27 readonly name: string;
28 readonly version?: string;
29 readonly schemaUrl?: string;
30}
31/** Defines an error handler function */
32export declare type ErrorHandler = (ex: Exception) => void;
33//# sourceMappingURL=types.d.ts.map
\No newline at end of file