Combines multiple exporters into one. When a trace is exported, it is sent to all contained exporters.
Examples
# Export to both console and JSONL
tmp <- tempfile(fileext = ".jsonl")
combined <- exporter_multi(
exporter_console(verbose = FALSE),
exporter_jsonl(tmp)
)
tr <- Trace$new("multi-demo")
tr$start()
tr$end()
export_trace(combined, tr)
#> --- Trace: multi-demo ---
#> Status: completed
#> Duration: 0.00s
#> Spans: 0
unlink(tmp)