powered by
The return value can be used as the parent option when starting a span.
parent
extract_http_context(headers)
And otel_span_context object.
A named list with one or two strings: traceparent is mandatory, and tracestate is optional.
traceparent
tracestate
pack_http_context()
hdr <- otel::pack_http_context() ctx <- otel::extract_http_context() ctx$is_valid()
Run the code above in your browser using DataLab