kafka-ts
Version:
**KafkaTS** is a Apache Kafka client library for Node.js. It provides both a low-level API for communicating directly with the Apache Kafka cluster and high-level APIs for publishing and subscribing to Kafka topics.
6 lines (5 loc) • 399 B
TypeScript
export interface Tracer {
startActiveSpan<T>(module: string, method: string, metadata: Record<string, unknown>, callback: () => T): T;
}
export declare const setTracer: (newTracer: Tracer) => void;
export declare const createTracer: (module: string) => (fn?: (...args: any[]) => Record<string, unknown> | undefined) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;