diff --git a/sdk/include/opentelemetry/sdk/metrics/aggregator/sketch_aggregator.h b/sdk/include/opentelemetry/sdk/metrics/aggregator/sketch_aggregator.h index 8ad7be8c68..171dfe174b 100644 --- a/sdk/include/opentelemetry/sdk/metrics/aggregator/sketch_aggregator.h +++ b/sdk/include/opentelemetry/sdk/metrics/aggregator/sketch_aggregator.h @@ -48,6 +48,7 @@ class SketchAggregator final : public Aggregator this->values_ = std::vector(2, 0); // Sum in [0], Count in [1] this->checkpoint_ = std::vector(2, 0); max_buckets_ = max_buckets; + error_bound_ = error_bound; gamma = (1+error_bound)/(1-error_bound); }