import type { HeadersFactory } from './otlp-http-configuration'; export interface OTLPExporterConfigBase { /** * Custom headers that will be attached to the HTTP request that's sent to the endpoint. * * @remarks * Prefer using a plain object over a factory function wherever possible. * If using a factory function (`HttpAgentFactory`), **do not import `http` or `https` at the top of the file** * Instead, use dynamic `import()` or `require()` to load the module. This ensures that the `http` or `https` * module is not loaded before `@opentelemetry/instrumentation-http` can instrument it. * * Functions passed to the exporter MUST NOT throw errors. * * @example