OpenTelemetry PHP

OtelMetrics

Table of Contents

Constants

OTEL_SDK_EXPORTER_LOG_EXPORTED  = 'otel.sdk.exporter.log.exported'
The number of log records for which the export has finished, either successful or failed For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.
OTEL_SDK_EXPORTER_LOG_INFLIGHT  = 'otel.sdk.exporter.log.inflight'
The number of log records which were passed to the exporter, but that have not been exported yet (neither successful, nor failed) For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.
OTEL_SDK_EXPORTER_METRIC_DATA_POINT_EXPORTED  = 'otel.sdk.exporter.metric_data_point.exported'
The number of metric data points for which the export has finished, either successful or failed For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.
OTEL_SDK_EXPORTER_METRIC_DATA_POINT_INFLIGHT  = 'otel.sdk.exporter.metric_data_point.inflight'
The number of metric data points which were passed to the exporter, but that have not been exported yet (neither successful, nor failed) For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.
OTEL_SDK_EXPORTER_OPERATION_DURATION  = 'otel.sdk.exporter.operation.duration'
The duration of exporting a batch of telemetry records.
OTEL_SDK_EXPORTER_SPAN_EXPORTED  = 'otel.sdk.exporter.span.exported'
The number of spans for which the export has finished, either successful or failed For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.
OTEL_SDK_EXPORTER_SPAN_EXPORTED_COUNT  = 'otel.sdk.exporter.span.exported.count'
Deprecated, use `otel.sdk.exporter.span.exported` instead.
OTEL_SDK_EXPORTER_SPAN_INFLIGHT  = 'otel.sdk.exporter.span.inflight'
The number of spans which were passed to the exporter, but that have not been exported yet (neither successful, nor failed) For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.
OTEL_SDK_EXPORTER_SPAN_INFLIGHT_COUNT  = 'otel.sdk.exporter.span.inflight.count'
Deprecated, use `otel.sdk.exporter.span.inflight` instead.
OTEL_SDK_LOG_CREATED  = 'otel.sdk.log.created'
The number of logs submitted to enabled SDK Loggers
OTEL_SDK_METRIC_READER_COLLECTION_DURATION  = 'otel.sdk.metric_reader.collection.duration'
The duration of the collect operation of the metric reader.
OTEL_SDK_PROCESSOR_LOG_PROCESSED  = 'otel.sdk.processor.log.processed'
The number of log records for which the processing has finished, either successful or failed For successful processing, `error.type` MUST NOT be set. For failed processing, `error.type` MUST contain the failure cause.
OTEL_SDK_PROCESSOR_LOG_QUEUE_CAPACITY  = 'otel.sdk.processor.log.queue.capacity'
The maximum number of log records the queue of a given instance of an SDK Log Record processor can hold Only applies to Log Record processors which use a queue, e.g. the SDK Batching Log Record Processor.
OTEL_SDK_PROCESSOR_LOG_QUEUE_SIZE  = 'otel.sdk.processor.log.queue.size'
The number of log records in the queue of a given instance of an SDK log processor Only applies to log record processors which use a queue, e.g. the SDK Batching Log Record Processor.
OTEL_SDK_PROCESSOR_SPAN_PROCESSED  = 'otel.sdk.processor.span.processed'
The number of spans for which the processing has finished, either successful or failed For successful processing, `error.type` MUST NOT be set. For failed processing, `error.type` MUST contain the failure cause.
OTEL_SDK_PROCESSOR_SPAN_PROCESSED_COUNT  = 'otel.sdk.processor.span.processed.count'
Deprecated, use `otel.sdk.processor.span.processed` instead.
OTEL_SDK_PROCESSOR_SPAN_QUEUE_CAPACITY  = 'otel.sdk.processor.span.queue.capacity'
The maximum number of spans the queue of a given instance of an SDK span processor can hold Only applies to span processors which use a queue, e.g. the SDK Batching Span Processor.
OTEL_SDK_PROCESSOR_SPAN_QUEUE_SIZE  = 'otel.sdk.processor.span.queue.size'
The number of spans in the queue of a given instance of an SDK span processor Only applies to span processors which use a queue, e.g. the SDK Batching Span Processor.
OTEL_SDK_SPAN_ENDED  = 'otel.sdk.span.ended'
The number of created spans for which the end operation was called For spans with `recording=true`: Implementations MUST record both `otel.sdk.span.live` and `otel.sdk.span.ended`.
OTEL_SDK_SPAN_ENDED_COUNT  = 'otel.sdk.span.ended.count'
Deprecated, use `otel.sdk.span.ended` instead.
OTEL_SDK_SPAN_LIVE  = 'otel.sdk.span.live'
The number of created spans for which the end operation has not been called yet For spans with `recording=true`: Implementations MUST record both `otel.sdk.span.live` and `otel.sdk.span.ended`.
OTEL_SDK_SPAN_LIVE_COUNT  = 'otel.sdk.span.live.count'
Deprecated, use `otel.sdk.span.live` instead.

Constants

OTEL_SDK_EXPORTER_LOG_EXPORTED

The number of log records for which the export has finished, either successful or failed For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.

public mixed OTEL_SDK_EXPORTER_LOG_EXPORTED = 'otel.sdk.exporter.log.exported'

For exporters with partial success semantics (e.g. OTLP with rejected_log_records), rejected log records MUST count as failed and only non-rejected log records count as success. If no rejection reason is available, rejected SHOULD be used as value for error.type.

Instrument: counter Unit: {log_record}

Tags
experimental

OTEL_SDK_EXPORTER_LOG_INFLIGHT

The number of log records which were passed to the exporter, but that have not been exported yet (neither successful, nor failed) For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.

public mixed OTEL_SDK_EXPORTER_LOG_INFLIGHT = 'otel.sdk.exporter.log.inflight'

Instrument: updowncounter Unit: {log_record}

Tags
experimental

OTEL_SDK_EXPORTER_METRIC_DATA_POINT_EXPORTED

The number of metric data points for which the export has finished, either successful or failed For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.

public mixed OTEL_SDK_EXPORTER_METRIC_DATA_POINT_EXPORTED = 'otel.sdk.exporter.metric_data_point.exported'

For exporters with partial success semantics (e.g. OTLP with rejected_data_points), rejected data points MUST count as failed and only non-rejected data points count as success. If no rejection reason is available, rejected SHOULD be used as value for error.type.

Instrument: counter Unit: {data_point}

Tags
experimental

OTEL_SDK_EXPORTER_METRIC_DATA_POINT_INFLIGHT

The number of metric data points which were passed to the exporter, but that have not been exported yet (neither successful, nor failed) For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.

public mixed OTEL_SDK_EXPORTER_METRIC_DATA_POINT_INFLIGHT = 'otel.sdk.exporter.metric_data_point.inflight'

Instrument: updowncounter Unit: {data_point}

Tags
experimental

OTEL_SDK_EXPORTER_OPERATION_DURATION

The duration of exporting a batch of telemetry records.

public mixed OTEL_SDK_EXPORTER_OPERATION_DURATION = 'otel.sdk.exporter.operation.duration'

This metric defines successful operations using the full success definitions for http and grpc. Anything else is defined as an unsuccessful operation. For successful operations, error.type MUST NOT be set. For unsuccessful export operations, error.type MUST contain a relevant failure cause.

Instrument: histogram Unit: s

Tags
experimental

OTEL_SDK_EXPORTER_SPAN_EXPORTED

The number of spans for which the export has finished, either successful or failed For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.

public mixed OTEL_SDK_EXPORTER_SPAN_EXPORTED = 'otel.sdk.exporter.span.exported'

For exporters with partial success semantics (e.g. OTLP with rejected_spans), rejected spans MUST count as failed and only non-rejected spans count as success. If no rejection reason is available, rejected SHOULD be used as value for error.type.

Instrument: counter Unit: {span}

Tags
experimental

OTEL_SDK_EXPORTER_SPAN_EXPORTED_COUNT

Deprecated, use `otel.sdk.exporter.span.exported` instead.

public mixed OTEL_SDK_EXPORTER_SPAN_EXPORTED_COUNT = 'otel.sdk.exporter.span.exported.count'

Instrument: updowncounter Unit: {span}

Tags
experimental

OTEL_SDK_EXPORTER_SPAN_INFLIGHT

The number of spans which were passed to the exporter, but that have not been exported yet (neither successful, nor failed) For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.

public mixed OTEL_SDK_EXPORTER_SPAN_INFLIGHT = 'otel.sdk.exporter.span.inflight'

Instrument: updowncounter Unit: {span}

Tags
experimental

OTEL_SDK_EXPORTER_SPAN_INFLIGHT_COUNT

Deprecated, use `otel.sdk.exporter.span.inflight` instead.

public mixed OTEL_SDK_EXPORTER_SPAN_INFLIGHT_COUNT = 'otel.sdk.exporter.span.inflight.count'

Instrument: updowncounter Unit: {span}

Tags
experimental

OTEL_SDK_LOG_CREATED

The number of logs submitted to enabled SDK Loggers

public mixed OTEL_SDK_LOG_CREATED = 'otel.sdk.log.created'

Instrument: counter Unit: {log_record}

Tags
experimental

OTEL_SDK_METRIC_READER_COLLECTION_DURATION

The duration of the collect operation of the metric reader.

public mixed OTEL_SDK_METRIC_READER_COLLECTION_DURATION = 'otel.sdk.metric_reader.collection.duration'

For successful collections, error.type MUST NOT be set. For failed collections, error.type SHOULD contain the failure cause. It can happen that metrics collection is successful for some MetricProducers, while others fail. In that case error.type SHOULD be set to any of the failure causes.

Instrument: histogram Unit: s

Tags
experimental

OTEL_SDK_PROCESSOR_LOG_PROCESSED

The number of log records for which the processing has finished, either successful or failed For successful processing, `error.type` MUST NOT be set. For failed processing, `error.type` MUST contain the failure cause.

public mixed OTEL_SDK_PROCESSOR_LOG_PROCESSED = 'otel.sdk.processor.log.processed'

For the SDK Simple and Batching Log Record Processor a log record is considered to be processed already when it has been submitted to the exporter, not when the corresponding export call has finished.

Instrument: counter Unit: {log_record}

Tags
experimental

OTEL_SDK_PROCESSOR_LOG_QUEUE_CAPACITY

The maximum number of log records the queue of a given instance of an SDK Log Record processor can hold Only applies to Log Record processors which use a queue, e.g. the SDK Batching Log Record Processor.

public mixed OTEL_SDK_PROCESSOR_LOG_QUEUE_CAPACITY = 'otel.sdk.processor.log.queue.capacity'

Instrument: updowncounter Unit: {log_record}

Tags
experimental

OTEL_SDK_PROCESSOR_LOG_QUEUE_SIZE

The number of log records in the queue of a given instance of an SDK log processor Only applies to log record processors which use a queue, e.g. the SDK Batching Log Record Processor.

public mixed OTEL_SDK_PROCESSOR_LOG_QUEUE_SIZE = 'otel.sdk.processor.log.queue.size'

Instrument: updowncounter Unit: {log_record}

Tags
experimental

OTEL_SDK_PROCESSOR_SPAN_PROCESSED

The number of spans for which the processing has finished, either successful or failed For successful processing, `error.type` MUST NOT be set. For failed processing, `error.type` MUST contain the failure cause.

public mixed OTEL_SDK_PROCESSOR_SPAN_PROCESSED = 'otel.sdk.processor.span.processed'

For the SDK Simple and Batching Span Processor a span is considered to be processed already when it has been submitted to the exporter, not when the corresponding export call has finished.

Instrument: counter Unit: {span}

Tags
experimental

OTEL_SDK_PROCESSOR_SPAN_PROCESSED_COUNT

Deprecated, use `otel.sdk.processor.span.processed` instead.

public mixed OTEL_SDK_PROCESSOR_SPAN_PROCESSED_COUNT = 'otel.sdk.processor.span.processed.count'

Instrument: updowncounter Unit: {span}

Tags
experimental

OTEL_SDK_PROCESSOR_SPAN_QUEUE_CAPACITY

The maximum number of spans the queue of a given instance of an SDK span processor can hold Only applies to span processors which use a queue, e.g. the SDK Batching Span Processor.

public mixed OTEL_SDK_PROCESSOR_SPAN_QUEUE_CAPACITY = 'otel.sdk.processor.span.queue.capacity'

Instrument: updowncounter Unit: {span}

Tags
experimental

OTEL_SDK_PROCESSOR_SPAN_QUEUE_SIZE

The number of spans in the queue of a given instance of an SDK span processor Only applies to span processors which use a queue, e.g. the SDK Batching Span Processor.

public mixed OTEL_SDK_PROCESSOR_SPAN_QUEUE_SIZE = 'otel.sdk.processor.span.queue.size'

Instrument: updowncounter Unit: {span}

Tags
experimental

OTEL_SDK_SPAN_ENDED

The number of created spans for which the end operation was called For spans with `recording=true`: Implementations MUST record both `otel.sdk.span.live` and `otel.sdk.span.ended`.

public mixed OTEL_SDK_SPAN_ENDED = 'otel.sdk.span.ended'

For spans with recording=false: If implementations decide to record this metric, they MUST also record otel.sdk.span.live.

Instrument: counter Unit: {span}

Tags
experimental

OTEL_SDK_SPAN_ENDED_COUNT

Deprecated, use `otel.sdk.span.ended` instead.

public mixed OTEL_SDK_SPAN_ENDED_COUNT = 'otel.sdk.span.ended.count'

Instrument: counter Unit: {span}

Tags
experimental

OTEL_SDK_SPAN_LIVE

The number of created spans for which the end operation has not been called yet For spans with `recording=true`: Implementations MUST record both `otel.sdk.span.live` and `otel.sdk.span.ended`.

public mixed OTEL_SDK_SPAN_LIVE = 'otel.sdk.span.live'

For spans with recording=false: If implementations decide to record this metric, they MUST also record otel.sdk.span.ended.

Instrument: updowncounter Unit: {span}

Tags
experimental

OTEL_SDK_SPAN_LIVE_COUNT

Deprecated, use `otel.sdk.span.live` instead.

public mixed OTEL_SDK_SPAN_LIVE_COUNT = 'otel.sdk.span.live.count'

Instrument: updowncounter Unit: {span}

Tags
experimental

        
On this page

Search results