OpenTelemetry
v0.158.0ObservabilityAug 4, 2026
OpenTelemetry v0.158.0 is a mixed release introducing a new queuebatchprocessor and mdatagen enhancements, while removing the deprecated Validator and Validate APIs from pkg/xconfmap. It also fixes a TLS resource leak in configtls and corrects several mdatagen bugs affecting metric versioning and debug exporter output.
breakingpkg/xconfmap Validator/Validate APIs removed
pkg/xconfmap.Validator and pkg/xconfmap.Validate have been removed; use the equivalent symbols in confmap instead. This applies to any code that imports or calls these APIs from pkg/xconfmap.
Key changes (8)
- Breaking: pkg/xconfmap.Validator and pkg/xconfmap.Validate removed; migrate to confmap equivalents
- New queuebatchprocessor added to replace legacy batchprocessor, built on exporterhelper with sending_queue configuration
- TLS goroutine and file descriptor leak fixed in configtls; CA file reloads now checked during handshakes at most once per second instead of continuous background polling
- mdatagen: first-class extended type aliases (int64, duration, opaque_string, id, opaque_map) added for metadata.yaml config schemas
- memory_limiter extension promoted to beta stability
- configgrpc package marked as stable
- debug exporter now correctly formats non-string profile sample attributes (Int(42) instead of %!s(int64=42)), string attributes render as Str(hello-world)
- mdatagen fixes collision warnings and metric disabling for versioned metrics with different attribute types, supports renamed attributes with same type
Add OpenTelemetry to your stack
A weekly email arrives when a release needs action. Like the breaking changes in this release.