R/cache.R

Defines functions trace_id_size span_id_size

the <- new.env(parent = emptyenv())
the$span_id_size <- NULL
the$trace_id_size <- NULL

span_id_size <- function() {
  the[["span_id_size"]] %||%
    (assign("span_id_size", ccall(otel_span_id_size), envir = the))
}

trace_id_size <- function() {
  the[["trace_id_size"]] %||%
    (assign("trace_id_size", ccall(otel_trace_id_size), envir = the))
}

Try the otelsdk package in your browser

Any scripts or data that you put into this service are public.

otelsdk documentation built on Sept. 10, 2025, 10:32 a.m.