@aws/aws-distro-opentelemetry-node-autoinstrumentation
Version:
This package provides Amazon Web Services distribution of the OpenTelemetry Node Instrumentation, which allows for auto-instrumentation of NodeJS applications.
25 lines • 1.51 kB
TypeScript
import { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
import { IExportTraceServiceResponse } from '@opentelemetry/otlp-transformer';
import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
import { OTLPAwsBaseExporter } from '../common/otlp-aws-base-exporter';
import { LoggerProvider as APILoggerProvider } from '@opentelemetry/api-logs';
import { ExportResult } from '@opentelemetry/core';
/**
* This exporter extends the functionality of the OTLPProtoTraceExporter to allow spans to be exported
* to the XRay OTLP endpoint https://xray.[AWSRegion].amazonaws.com/v1/traces. Utilizes the aws-sdk
* library to sign and directly inject SigV4 Authentication to the exported request's headers. <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-OTLPEndpoint.html">...</a>
*
* This only works with version >=16 Node.js environments.
*
* @param endpoint - The AWS X-Ray OTLP endpoint URL
* @param config - Optional OTLP exporter configuration
*/
export declare class OTLPAwsSpanExporter extends OTLPAwsBaseExporter<ReadableSpan[], IExportTraceServiceResponse> implements SpanExporter {
private loggerProvider;
private lloHandler;
constructor(endpoint: string, config?: OTLPExporterNodeConfigBase, loggerProvider?: APILoggerProvider);
private ensureLloHandler;
export(items: ReadableSpan[], resultCallback: (result: ExportResult) => void): Promise<void>;
}
//# sourceMappingURL=otlp-aws-span-exporter.d.ts.map