UNPKG

@opentelemetry/instrumentation-aws-sdk

Version:

OpenTelemetry instrumentation for `aws-sdk` and `@aws-sdk/client-*` clients for various AWS services

16 lines 854 B
import { DiagLogger, HrTime, Meter, Span, SpanAttributes, SpanKind, Tracer } from '@opentelemetry/api'; import { AwsSdkInstrumentationConfig, NormalizedRequest, NormalizedResponse } from '../types'; export interface RequestMetadata { isIncoming: boolean; isStream?: boolean; spanAttributes?: SpanAttributes; spanKind?: SpanKind; spanName?: string; } export interface ServiceExtension { requestPreSpanHook: (request: NormalizedRequest, config: AwsSdkInstrumentationConfig, diag: DiagLogger) => RequestMetadata; requestPostSpanHook?: (request: NormalizedRequest) => void; responseHook?: (response: NormalizedResponse, span: Span, tracer: Tracer, config: AwsSdkInstrumentationConfig, startTime: HrTime) => any | undefined; updateMetricInstruments?: (meter: Meter) => void; } //# sourceMappingURL=ServiceExtension.d.ts.map