micrometer
micrometer copied to clipboard
Distribution value has |bucket_counts| fields that sum to 4 which does not equal the |count| field value of 2
Describe the bug Hello,
Recently we have migrated our Spring Boot application from 2.7 to 3.2 and we've started to observe following error.
com.google.api.gax.rpc.InvalidArgumentException: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: One or more TimeSeries could not be written: Field timeSeries[31].points[0].distributionValue had an invalid value: Distribution value has |bucket_counts| fields that sum to 4 which does not equal the |count| field value of 2.
Environment
- Micrometer version: 1.12.2
- Micrometer registry: Stackdriver
- OS: Linux
- Java version: 17
To Reproduce How to reproduce the bug:
private Timer buildDependencyTimer(DependencyTimer dependencyTimer) {
return Timer.builder(LATENCY_DEPENDENCY_PREFIX)
.tags(getDependencyTags(dependencyTimer))
.publishPercentiles(percentiles)
.publishPercentileHistogram()
.minimumExpectedValue(Duration.ofNanos(1L))
.register(meterRegistry);
}
dependencyLatencyTimers.putIfAbsent(dependencyTimer, buildDependencyTimer(dependencyTimer));
dependencyLatencyTimers.get(dependencyTimer).record(responseTime, TimeUnit.MILLISECONDS);
Expected behavior Metrics should be reported to stackdriver.
Additional context Add any other context about the problem here, e.g. related issues.