{"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 } from '@opentelemetry/api';\nimport { SeverityNumber } from '@opentelemetry/api-logs';\nimport { InstrumentationConfig } from '@opentelemetry/instrumentation';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type LogHookFunction = (span: Span, record: Record<string, any>) => void;\n\nexport interface BunyanInstrumentationConfig extends InstrumentationConfig {\n  /**\n   * Whether to disable the automatic sending of log records to the\n   * OpenTelemetry Logs SDK.\n   * @default false\n   */\n  disableLogSending?: boolean;\n\n  /**\n   * Control Log sending severity level, logs will be sent for  specified severity and higher.\n   */\n  logSeverity?: SeverityNumber;\n\n  /**\n   * Whether to disable the injection trace-context fields, and possibly other\n   * fields from `logHook()`, into log records for log correlation.\n   * @default false\n   */\n  disableLogCorrelation?: boolean;\n\n  /**\n   * A function that allows injecting additional fields in log records. It is\n   * called, as `logHook(span, record)`, for each log record emitted in a valid\n   * span context. It requires `disableLogCorrelation` to be false.\n   */\n  logHook?: LogHookFunction;\n}\n"]}