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 <- multi_exporter(
console_exporter(verbose = FALSE),
jsonl_exporter(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)