{"version":3,"file":"legacy-base-configuration.js","sourceRoot":"","sources":["../../../src/configuration/legacy-base-configuration.ts"],"names":[],"mappings":"","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\nimport type { HeadersFactory } from './otlp-http-configuration';\n\nexport interface OTLPExporterConfigBase {\n  /**\n   * Custom headers that will be attached to the HTTP request that's sent to the endpoint.\n   *\n   * @remarks\n   * Prefer using a plain object over a factory function wherever possible.\n   * If using a factory function (`HttpAgentFactory`), **do not import `http` or `https` at the top of the file**\n   * Instead, use dynamic `import()` or `require()` to load the module. This ensures that the `http` or `https`\n   * module is not loaded before `@opentelemetry/instrumentation-http` can instrument it.\n   *\n   * Functions passed to the exporter MUST NOT throw errors.\n   *\n   * @example <caption> Using headers options directly: </caption>\n   * headers: {\n   *  Authorization: \"Api-Token my-secret-token\",\n   * }\n   *\n   * @example <caption> Using a custom factory function </caption>\n   * headers: async () => {\n   *   // ... do whatever you need to obtain the headers, ensuring you `await import('your-library')` to avoid breaking instrumentations ...\n   *   return {\n   *     Authorization: `Bearer ${token}`,\n   *   };\n   * };\n   */\n  headers?: Record<string, string> | HeadersFactory;\n  url?: string;\n  concurrencyLimit?: number;\n  /** Maximum time the OTLP exporter will wait for each batch export.\n   * The default value is 10000ms. */\n  timeoutMillis?: number;\n}\n"]}