Extract a span context from HTTP headers received from a client
Source:R/api.R
extract_http_context.Rd
The return value can be used as the parent
option when starting
a span.
Value
And otel_span_context object.
Examples
hdr <- otel::pack_http_context()
ctx <- otel::extract_http_context()
ctx$is_valid()
#> [1] FALSE