Skip to content

Commit 6577087

Browse files
authored
feat(otlp): histogram count limits now configurable (#1913)
* feat(otlp): histogram count limits now configurable * fix(otlp): set new field to pass validation suite * feat(otlp): enforce sensible minimum defaults
1 parent 23ad8e3 commit 6577087

3 files changed

Lines changed: 290 additions & 29 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- OpenTelemetry metric payloads now prefix generated metric names with their
1212
metric kind to simplify intake debugging.
1313
- OpenTelemetry cumulative metric generation now updates cumulative sums using
14-
aggregation temporality and preserves cumulative histogram min/max bounds.
14+
aggregation temporality, preserves cumulative histogram min/max bounds, and
15+
supports configurable histogram count limits.
1516
- HTTP blackhole now supports an `openmetrics` body variant for generated
1617
Prometheus/OpenMetrics scrape responses.
1718
- Updated to rand 0.10.x

lading_payload/benches/opentelemetry_metric.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ fn opentelemetry_metric_setup(c: &mut Criterion) {
3030
metrics_per_scope: ConfRange::Inclusive { min: 1, max: 128 },
3131
attributes_per_metric: ConfRange::Inclusive { min: 0, max: 255 },
3232
},
33+
..Default::default()
3334
};
3435
let _ot = OpentelemetryMetrics::new(config, MIB, &mut rng)
3536
.expect("failed to create metrics generator");
@@ -60,6 +61,7 @@ fn opentelemetry_metric_throughput(c: &mut Criterion) {
6061
metrics_per_scope: ConfRange::Inclusive { min: 1, max: 128 },
6162
attributes_per_metric: ConfRange::Inclusive { min: 0, max: 255 },
6263
},
64+
..Default::default()
6365
};
6466
let ot = OpentelemetryMetrics::new(config, size, &mut rng)
6567
.expect("failed to create metrics generator");

0 commit comments

Comments
 (0)