@types/datadog-tracer
Version:
TypeScript definitions for datadog-tracer
27 lines (21 loc) • 825 B
TypeScript
// Type definitions for datadog-tracer 0.4
// Project: https://github.com/rochdev/datadog-tracer-js#readme
// Definitions by: Dinesh Saravanan Kumaraswamy <https://github.com/dineshsaravanan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
import * as opentracing from "opentracing";
import { EventEmitter } from "events";
export as namespace Tracer;
export = Tracer;
interface TracerOptions {
service: string;
hostname?: string | undefined;
port?: number | undefined;
protocol?: string | undefined;
endpoint?: string | undefined;
}
declare class Tracer extends opentracing.Tracer {
constructor(tracerOptions: TracerOptions);
on(method: "error", cb?: (e: any) => void): void;
addEventListener(method: "error", cb?: (e: any) => void): void;
}