OTel

OTel Attributes

Attributes reserved for OpenTelemetry

AttributeTypeDescriptionExamplesStability
otel.status_codestringName of the code, either “OK” or “ERROR”. MUST NOT be set if the status code is UNSET.OK; ERRORStable
otel.status_descriptionstringDescription of the Status if it has a value, otherwise not set.resource not foundStable

otel.status_code has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
ERRORThe operation contains an error.Stable
OKThe operation has been validated by an Application developer or Operator to have completed successfully.Stable

OTel Scope Attributes

Attributes used by non-OTLP exporters to represent OpenTelemetry Scope’s concepts.

AttributeTypeDescriptionExamplesStability
otel.scope.namestringThe name of the instrumentation scope - (InstrumentationScope.Name in OTLP).io.opentelemetry.contrib.mongodbStable
otel.scope.versionstringThe version of the instrumentation scope - (InstrumentationScope.Version in OTLP).1.0.0Stable

Deprecated OTel Library Attributes

Describes deprecated otel.library attributes.

AttributeTypeDescriptionExamplesStability
otel.library.namestringio.opentelemetry.contrib.mongodbDeprecated
use the otel.scope.name attribute.
otel.library.versionstring1.0.0Deprecated
use the otel.scope.version attribute.