OpenTelemetry SDK
    Preparing search index...

    A registered reader of metrics that, when linked to a MetricProducer, offers global control over metrics.

    Hierarchy (View Summary)

    Index
    DEFAULT_OPTIONS: {
        appendTimestamp: boolean;
        endpoint: string;
        host: undefined;
        port: number;
        prefix: string;
        withoutScopeInfo: boolean;
        withoutTargetInfo: boolean;
        withResourceConstantLabels: undefined;
    } = ...
    • Flushes metrics read by this reader, the promise will reject after the optional timeout or resolve after completion.

      NOTE: this operation MAY continue even after the promise rejects due to a timeout.

      Parameters

      • Optionaloptions: CommonReaderOptions

        options with timeout.

      Returns Promise<void>

    • Request handler that responds with the current state of metrics

      Parameters

      • _request: IncomingMessage

        Incoming HTTP request of server instance

      • response: ServerResponse

        HTTP response object used to response to request

      Returns void

    • Handle once the SDK has initialized this MetricReader Overriding this method is optional.

      Returns void

    • Set the MetricProducer used by this instance. This should only be called once by the SDK and should be considered internal.

      NOTE: implementations MUST throw when called more than once

      Parameters

      Returns void

    • Shuts down the metric reader, the promise will reject after the optional timeout or resolve after completion.

      NOTE: this operation MAY continue even after the promise rejects due to a timeout.

      Parameters

      • Optionaloptions: CommonReaderOptions

        options with timeout.

      Returns Promise<void>