UNPKG

enhanced-adot-node-autoinstrumentation

Version:

This package provides Amazon Web Services distribution of the OpenTelemetry Node Instrumentation, which allows for auto-instrumentation of NodeJS applications.

29 lines 1.44 kB
import { MeterProvider } from '@opentelemetry/api'; import { Resource } from '@opentelemetry/resources'; import { AwsSpanMetricsProcessor } from './aws-span-metrics-processor'; import { MetricAttributeGenerator } from './metric-attribute-generator'; import { ForceFlushFunction } from './aws-span-processing-util'; /** A builder for {@link AwsSpanMetricsProcessor} */ export declare class AwsSpanMetricsProcessorBuilder { private static DEFAULT_GENERATOR; private static DEFAULT_SCOPE_NAME; private meterProvider; private resource; private forceFlushFunction; private generator; private scopeName; static create(meterProvider: MeterProvider, resource: Resource, meterProviderForceFlusher: ForceFlushFunction): AwsSpanMetricsProcessorBuilder; private constructor(); /** * Sets the generator used to generate attributes used in metrics produced by span metrics * processor. If unset, defaults to {@link DEFAULT_GENERATOR}. Must not be null. */ setGenerator(generator: MetricAttributeGenerator): AwsSpanMetricsProcessorBuilder; /** * Sets the scope name used in the creation of metrics by the span metrics processor. If unset, * defaults to {@link DEFAULT_SCOPE_NAME}. Must not be null. */ setScopeName(scopeName: string): AwsSpanMetricsProcessorBuilder; build(): AwsSpanMetricsProcessor; } //# sourceMappingURL=aws-span-metrics-processor-builder.d.ts.map