From 96aeaee5b7cb8c0bc4af7ff4717b429f2d9f67e1 Mon Sep 17 00:00:00 2001 From: Brett McBride Date: Fri, 10 Jan 2025 10:17:14 +1100 Subject: [PATCH] declarative config 0.3+ support (#1452) This brings declarative config support up to 0.3 plus some of the unreleased 0.4 features: * porting code from Nevay/otel-sdk-configuration * support 0.4 metric reader config * allow empty keys since https://github.com/open-telemetry/opentelemetry-specification/pull/4269 empty keys are allows, and NULL is no longer equivalent to unset * update config example to remove empty objects * remove moved component providers from composer.json * add ComponentProviderRegistry::componentMap for instrumentation configuration --- Metrics/Stream/DeltaStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Metrics/Stream/DeltaStorage.php b/Metrics/Stream/DeltaStorage.php index 066d2d9..52c987c 100644 --- a/Metrics/Stream/DeltaStorage.php +++ b/Metrics/Stream/DeltaStorage.php @@ -14,7 +14,7 @@ */ final class DeltaStorage { - private Delta $head; + private readonly Delta $head; public function __construct(private readonly AggregationInterface $aggregation) {