@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.
18 lines • 1.19 kB
TypeScript
import { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
import { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';
import { LogRecordExporter, ReadableLogRecord } from '@opentelemetry/sdk-logs';
import { OTLPAwsBaseExporter } from '../common/otlp-aws-base-exporter';
/**
* This exporter extends the functionality of the OTLPProtoLogExporter to allow logs to be exported
* to the CloudWatch Logs OTLP endpoint https://logs.[AWSRegion].amazonaws.com/v1/logs. 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 CloudWatch Logs OTLP endpoint URL
* @param config - Optional OTLP exporter configuration
*/
export declare class OTLPAwsLogExporter extends OTLPAwsBaseExporter<ReadableLogRecord[], IExportLogsServiceResponse> implements LogRecordExporter {
constructor(endpoint: string, config?: OTLPExporterNodeConfigBase);
}
//# sourceMappingURL=otlp-aws-log-exporter.d.ts.map