R/onload.R

Defines functions .onLoad

the <- new.env(parent = emptyenv())

# nocov start
.onLoad <- function(libname, pkgname) {
  the$span_kinds <- span_kinds
  the$span_status_codes <- span_status_codes
  the$default_resource_attributes <- default_resource_attributes()
  ccall(otel_init_constants, the)
}
# nocov end

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.