{"version":3,"file":"BaseFetchExporter.cjs","names":[],"sources":["../../../src/exporters/BaseFetchExporter/BaseFetchExporter.ts"],"sourcesContent":["import type { ExportResult } from '@opentelemetry/core';\nimport type { IOtlpExportDelegate } from '@opentelemetry/otlp-exporter-base';\n\nexport class BaseFetchExporter<Internal> {\n  public constructor(\n    private readonly _delegate: IOtlpExportDelegate<Internal>,\n  ) {}\n\n  public export(\n    items: Internal,\n    resultCallback: (result: ExportResult) => void,\n  ): void {\n    this._delegate.export(items, resultCallback);\n  }\n\n  public forceFlush(): Promise<void> {\n    return this._delegate.forceFlush();\n  }\n\n  public shutdown(): Promise<void> {\n    return this._delegate.shutdown();\n  }\n}\n"],"mappings":";;AAGA,IAAa,oBAAb,MAAyC;CAEpB;CADnB,YACE,WACA;EADiB,KAAA,YAAA;CAChB;CAEH,OACE,OACA,gBACM;EACN,KAAK,UAAU,OAAO,OAAO,cAAc;CAC7C;CAEA,aAAmC;EACjC,OAAO,KAAK,UAAU,WAAW;CACnC;CAEA,WAAiC;EAC/B,OAAO,KAAK,UAAU,SAAS;CACjC;AACF"}