19 lines
523 B
TypeScript
19 lines
523 B
TypeScript
import type { TraceEvent } from '../types';
|
|
declare const localEndpoint: {
|
|
serviceName: string;
|
|
ipv4: string;
|
|
port: number;
|
|
};
|
|
type Event = TraceEvent & {
|
|
localEndpoint?: typeof localEndpoint;
|
|
};
|
|
export declare function batcher(reportEvents: (evts: Event[]) => Promise<void>): {
|
|
flushAll: () => Promise<void>;
|
|
report: (event: Event) => void;
|
|
};
|
|
declare const _default: {
|
|
flushAll: () => Promise<void | undefined> | undefined;
|
|
report: (event: TraceEvent) => void;
|
|
};
|
|
export default _default;
|