Function: createMultiExporter()

function createMultiExporter(exporters): OTelExporter;

Defined in: tracing/otel.ts:287

Create a multi-exporter that sends to multiple backends

Parameters

Parameter Type Description
exporters OTelExporter[] List of exporters to use

Returns

OTelExporter

OTelExporter instance

Example

const multiExporter = createMultiExporter([
  createConsoleExporter(),
  await createOTelExporter(),
]);