{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Span, Context as OtelContext } from '@opentelemetry/api';\nimport { InstrumentationConfig } from '@opentelemetry/instrumentation';\nimport type { Context } from 'aws-lambda';\n\nexport type RequestHook = (\n  span: Span,\n  hookInfo: { event: any; context: Context }\n) => void;\n\nexport type ResponseHook = (\n  span: Span,\n  hookInfo: {\n    err?: Error | string | null;\n    res?: any;\n  }\n) => void;\n\nexport type EventContextExtractor = (\n  event: any,\n  context: Context\n) => OtelContext;\nexport interface AwsLambdaInstrumentationConfig extends InstrumentationConfig {\n  requestHook?: RequestHook;\n  responseHook?: ResponseHook;\n  eventContextExtractor?: EventContextExtractor;\n  lambdaHandler?: string;\n  lambdaStartTime?: number;\n}\n"]}