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_SCOPE_NAME  = 'otel.scope.name'
The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP).
OTEL_SCOPE_VERSION  = 'otel.scope.version'
The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP).
OTEL_STATUS_CODE  = '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  = 'ERROR'
The operation contains an error.
OTEL_STATUS_CODE_VALUE_OK  = 'OK'
The operation has been validated by an Application developer or Operator to have completed successfully.
OTEL_STATUS_DESCRIPTION  = 'otel.status_description'
Description of the Status if it has a value, otherwise not set.

Constants

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