MetricLimits
Read onlyYes
FinalYes
Metrics are exempt from attribute count/length limits (OTel); only cardinality is limited.
Tags
Constants
- OVERFLOW_ATTRIBUTE : string = 'otel.metric.overflow'
- Set to true on the synthetic data point that absorbs measurements past the cardinality limit.
Properties
- $cardinalityLimit : int
Methods
- __construct() : mixed
- default() : self
- Create limits with default values.
- unlimited() : self
- Create limits with no cardinality restrictions.
Constants
OVERFLOW_ATTRIBUTE
Set to true on the synthetic data point that absorbs measurements past the cardinality limit.
public
string
OVERFLOW_ATTRIBUTE
= 'otel.metric.overflow'
Properties
$cardinalityLimit
public
int
$cardinalityLimit
= self::DEFAULT_CARDINALITY_LIMIT
Methods
__construct()
public
__construct([int $cardinalityLimit = self::DEFAULT_CARDINALITY_LIMIT ]) : mixed
Parameters
- $cardinalityLimit : int = self::DEFAULT_CARDINALITY_LIMIT
-
Maximum number of unique attribute combinations per instrument
default()
Create limits with default values.
public
static default() : self
Return values
selfunlimited()
Create limits with no cardinality restrictions.
public
static unlimited() : self
Warning: This can lead to memory exhaustion with high-cardinality attributes.