# Installation
> `npm install --save @types/datadog-tracer`

# Summary
This package contains type definitions for datadog-tracer (https://github.com/rochdev/datadog-tracer-js#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/datadog-tracer.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/datadog-tracer/index.d.ts)
````ts
import { EventEmitter } from "events";
import * as opentracing from "opentracing";

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;
}

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
 * Dependencies: [@types/events](https://npmjs.com/package/@types/events), [opentracing](https://npmjs.com/package/opentracing)

# Credits
These definitions were written by [Dinesh Saravanan Kumaraswamy](https://github.com/dineshsaravanan).
