Changelog
Source:NEWS.md
otel 0.3.0
CRAN release: 2026-11-07
The no-op tracer and logger providers now have a
shutdown()method, and tracer and logger providers print theirshutdown()method, if they have one (r-lib/otelsdk#32).The
create_histogram()method of meters now has aboundariesargument, to set the explicit bucket boundaries advisory parameter of the histogram. This needs otelsdk 0.2.4.9005 or later (#49).start_local_active_span()andstart_span()now use the name of the calling function as the span name, ifnameis not given. They also set thecode.function.nameattribute. This only happens if tracing is enabled, so it costs nothing if tracing is off (#45).Length one attribute values that are R arrays, e.g. created with
as.array(), are now recorded as arrays, instead of scalars.as_attributes()keeps them as arrays. This needs otelsdk 0.2.4.9005 or later (#48).Spans ended automatically, without an error, now keep the
unsetstatus, instead of being set took. Only end users should mark spans asok, see the OpenTelemetry specification. This needs otelsdk 0.2.4.9005 or later (#30).Spans now have a
set_attributes()method, to set multiple attributes at once. It needs otelsdk 0.2.4.9005 or later (#35).OTEL_R_SUPPRESS_SCOPESnow turns off a scope if either its scope name or its package name matches. Previously both had to match, and scopes created with an explicit tracer name could not be turned off at all (#50).default_tracer_name()(and soget_tracer(),get_logger()andget_meter()) now detects the calling package even if a tracer name is given. NowOTEL_R_EMIT_SCOPESandOTEL_R_SUPPRESS_SCOPEScan match these scopes by package name (#52).New
otlp/stdoutexporter for traces, logs and metrics. It writes OTLP JSON lines to the standard output. It needs otelsdk 0.2.4.9005 or later (#18).The
record_exception()method of no-op spans now accepts the same arguments as the method of real spans:error_condition,attributesand...(#36).end_span()now has astatus_codeargument, to set the status of the span before ending it (#39).get_active_span(),get_active_span_context(),pack_http_context()andextract_http_context()are now faster: they use a cached internal tracer, instead of looking up the tracer name from the call stack. They also have a newtracerargument, to use a specific tracer (#34).