A named list that can be used as the attributes
argument to
the start_span()
method of otel_tracer, the log()
method of
otel_logger, etc.
If x
is not named, or some names are the empty string or NA
, then
integer numbers as used for the missing or invalid names.
If some elements in x
are not of the natively supported R types in
OpenTelemetry (character, logical, double, integer), then
their printed form is captured using utils::capture.output()
.
Limits
The number of attributes can be limited with the
OTEL_ATTRIBUTE_COUNT_LIMIT environment variable. The default is
128.
The length of the each attribute (vector) can be limited with the
OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT environment variable. The default is
Inf
. Note that this is applied to
the length of each attribute as an R vector. E.g. it does not
currently limit the number of characters in individual strings.