Skip to contents

Calls the exporter's export function with the serialized trace.

Usage

export_trace(exporter, trace)

Arguments

exporter

An S3 securetrace_exporter object.

trace

A Trace object.

Value

Invisible NULL.

Examples

exp <- console_exporter(verbose = FALSE)
tr <- Trace$new("test-trace")
tr$start()
tr$end()
export_trace(exp, tr)
#> --- Trace: test-trace ---
#> Status: completed
#> Duration: 0.00s
#> Spans: 0