You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Metrics fail to be exported: One or more TimeSeries could not be written: [...] Distribution |explicit_buckets.bounds| does not have at least one entry
#11900
Closed
nioncode opened this issue
Jul 25, 2024
· 3 comments
I'm not sure if this is the correct repo to report the bug, please let me know if I should post this somewhere else.
We are using auto instrumentation via the opentelemetry-javaagent (v1.33.4) and the auto exporter (exporter-auto-0.31.0-alpha-shaded). We instrument our app with the following command:
When deploying our app to GCP, it seems to collect metrics correctly (at least some statistics show up for http.server.duration in Google Cloud Monitoring), but every minute our app prints a warning that it failed to write some TimeSeries (see below for the exact stack trace).
How can we find out which metric could not be written (since at least the http.server.duration seems to work fine) and/or how can we avoid the warning?
Steps to reproduce
Create a java app, instrument it with the agent + auto exporter and deploy it to GCP. Wait a couple of minutes until the app has started and check its logs.
Expected behavior
There should be no warnings.
Actual behavior
We get warnings in the logs that some TimeSeries cannot be exported:
Exporter threw an Exception
shadow.com.google.api.gax.rpc.InvalidArgumentException: shadow.io.grpc.StatusRuntimeException: INVALID_ARGUMENT: One or more TimeSeries could not be written: Field timeSeries[7].points[0].distributionValue had an invalid value: Distribution |explicit_buckets.bounds| does not have at least one entry.
at shadow.com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:92)
at shadow.com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:98)
at shadow.com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:66)
at shadow.com.google.api.gax.grpc.GrpcExceptionCallable$ExceptionTransformingFuture.onFailure(GrpcExceptionCallable.java:97)
at shadow.com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:84)
at shadow.com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1127)
at shadow.com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31)
at shadow.com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1286)
at shadow.com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:1055)
at shadow.com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:807)
at shadow.io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:568)
at shadow.io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:538)
at shadow.io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
at shadow.io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at shadow.io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at shadow.com.google.api.gax.grpc.ChannelPool$ReleasingClientCall$1.onClose(ChannelPool.java:570)
at shadow.io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:574)
at shadow.io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:72)
at shadow.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:742)
at shadow.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:723)
at shadow.io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at shadow.io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
caused by: shadow.io.grpc.StatusRuntimeException: INVALID_ARGUMENT: One or more TimeSeries could not be written: Field timeSeries[7].points[0].distributionValue had an invalid value: Distribution |explicit_buckets.bounds| does not have at least one entry.
at shadow.io.grpc.Status.asRuntimeException(Status.java:537)
... 14 common frames elided"
Javaagent or library instrumentation version
v1.33.4
Environment
JDK: Temurin 17 OS: Ubuntu 24.04
Undertow 2.3.12
Additional context
No response
The text was updated successfully, but these errors were encountered:
I was just wondering if this is actually an issue with the exporter or if something along the chain is not configuring the metric correctly. Since most metrics work fine, I'm just confused why some others don't or how I would find out where the error comes from. Do you have any suggestions how I could find the root of this?
Describe the bug
I'm not sure if this is the correct repo to report the bug, please let me know if I should post this somewhere else.
We are using auto instrumentation via the opentelemetry-javaagent (v1.33.4) and the auto exporter (
exporter-auto-0.31.0-alpha-shaded
). We instrument our app with the following command:When deploying our app to GCP, it seems to collect metrics correctly (at least some statistics show up for
http.server.duration
in Google Cloud Monitoring), but every minute our app prints a warning that it failed to write some TimeSeries (see below for the exact stack trace).How can we find out which metric could not be written (since at least the
http.server.duration
seems to work fine) and/or how can we avoid the warning?Steps to reproduce
Create a java app, instrument it with the agent + auto exporter and deploy it to GCP. Wait a couple of minutes until the app has started and check its logs.
Expected behavior
There should be no warnings.
Actual behavior
We get warnings in the logs that some TimeSeries cannot be exported:
Javaagent or library instrumentation version
v1.33.4
Environment
JDK: Temurin 17
OS: Ubuntu 24.04
Undertow 2.3.12
Additional context
No response
The text was updated successfully, but these errors were encountered: