export declare const tracer: import("@opentelemetry/api").Tracer; export declare const traceAsync: (spanName: string, fn: () => Promise) => Promise; /** * For convenience (instead of providing a mapping function) * an array of object keys for the first argument can be provided */ type ArgKeysOrArgsMapper = (keyof T[0])[] | ((...args: T) => any); export declare const traceAsyncFn: (spanName: string, argsMapper?: ArgKeysOrArgsMapper) => (fn: (...args: T) => Promise) => (...args: T) => Promise; export declare const traceFn: (spanName: string, argsMapper?: ArgKeysOrArgsMapper) => (fn: (...args: T) => U) => (...args: T) => U; /** * Creates a tuple of a `start` and `end` function for a span. * e.g. helpful when used together with RxJS taps */ type SpanTuple = { start: () => void; end: () => void; }; export declare const makeSpanTuple: (spanName: string) => SpanTuple; export {}; //# sourceMappingURL=tracing.d.ts.map