mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
25 lines
749 B
TypeScript
25 lines
749 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
|
|
import * as opentracing from "opentracing";
|
|
import { EventEmitter } from "events";
|
|
|
|
export as namespace Tracer;
|
|
export = Tracer;
|
|
|
|
interface TracerOptions {
|
|
service: string;
|
|
hostname?: string;
|
|
port?: number;
|
|
protocol?: string;
|
|
endpoint?: string;
|
|
}
|
|
|
|
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;
|
|
}
|