Logs can be exported with multiple record processors, each using different exporter. Instead of providing logRecordProcessorOptions
as a single object, an array of logRecordProcessorOptions
must be provided instead.
Supported processors: batch
, simple
Supported exporters: console
, grpc
, http
, http/protobuf
-
Run the docker compose file in the root of the repo, which will boot the OTLP collector:
docker compose up
-
Run the service
node multiple-processors.js