OpenTelemetry PHP

OtelAttributes

Semantic attributes and corresponding values for otel.

Tags
see
https://opentelemetry.io/docs/specs/semconv/registry/attributes/otel/

Table of Contents

Constants

OTEL_EVENT_NAME  : mixed = 'otel.event.name'
Identifies the class / type of event.
OTEL_SCOPE_NAME  : mixed = 'otel.scope.name'
The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP).
OTEL_SCOPE_VERSION  : mixed = 'otel.scope.version'
The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP).
OTEL_STATUS_CODE  : mixed = 'otel.status_code'
Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET.
OTEL_STATUS_CODE_VALUE_ERROR  : mixed = 'ERROR'
The operation contains an error.
OTEL_STATUS_CODE_VALUE_OK  : mixed = 'OK'
The operation has been validated by an Application developer or Operator to have completed successfully.
OTEL_STATUS_DESCRIPTION  : mixed = 'otel.status_description'
Description of the Status if it has a value, otherwise not set.

Constants

OTEL_EVENT_NAME

Identifies the class / type of event.

public mixed OTEL_EVENT_NAME = 'otel.event.name'

This attribute SHOULD be used by non-OTLP exporters when destination does not support EventName or equivalent field. This attribute MAY be used by applications using existing logging libraries so that it can be used to set the EventName field by Collector or SDK components.

Tags
stable

OTEL_SCOPE_NAME

The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP).

public mixed OTEL_SCOPE_NAME = 'otel.scope.name'
Tags
stable

OTEL_SCOPE_VERSION

The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP).

public mixed OTEL_SCOPE_VERSION = 'otel.scope.version'
Tags
stable

OTEL_STATUS_CODE

Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET.

public mixed OTEL_STATUS_CODE = 'otel.status_code'
Tags
stable

OTEL_STATUS_CODE_VALUE_ERROR

The operation contains an error.

public mixed OTEL_STATUS_CODE_VALUE_ERROR = 'ERROR'
Tags
stable

OTEL_STATUS_CODE_VALUE_OK

The operation has been validated by an Application developer or Operator to have completed successfully.

public mixed OTEL_STATUS_CODE_VALUE_OK = 'OK'
Tags
stable

OTEL_STATUS_DESCRIPTION

Description of the Status if it has a value, otherwise not set.

public mixed OTEL_STATUS_DESCRIPTION = 'otel.status_description'
Tags
stable
On this page

Search results