Spec: Logs SDK § LogRecord Limits
If the SDK implements attribute limits it MUST provide a way to change these limits, via a configuration to the LoggerProvider [...]
- Required (MUST): if attribute limits are implemented, expose a way to change them via configuration to the
LoggerProvider.
- Current:
LogRecordLimits (max_attributes, max_attribute_length) is implemented and enforced, but only configurable through env vars (OTEL_ATTRIBUTE_COUNT_LIMIT, OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT) or defaults. LoggerProvider.__init__ has no limits/log_record_limits parameter.
- Missing: programmatic configuration on
LoggerProvider, unlike TracerProvider(span_limits=...). Cross-signal inconsistency.
Part of open-telemetry/community#1751
Spec: Logs SDK § LogRecord Limits
LoggerProvider.LogRecordLimits(max_attributes,max_attribute_length) is implemented and enforced, but only configurable through env vars (OTEL_ATTRIBUTE_COUNT_LIMIT,OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT) or defaults.LoggerProvider.__init__has nolimits/log_record_limitsparameter.LoggerProvider, unlikeTracerProvider(span_limits=...). Cross-signal inconsistency.Part of open-telemetry/community#1751