0.4.5 • Published 6 months ago

@types/datadog-tracer v0.4.5

Weekly downloads
4,921
License
MIT
Repository
github
Last release
6 months ago

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

// 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;
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:08:31 GMT
  • Dependencies: @types/opentracing
  • Global values: Tracer

Credits

These definitions were written by Dinesh Saravanan Kumaraswamy.

0.4.5

6 months ago

0.4.4

7 months ago

0.4.3

8 months ago

0.4.2

3 years ago

0.4.1

6 years ago

0.4.0

6 years ago