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
When running with metrics enabled and using a PeriodicReader, memory usage seems to grow continuously until metrics are no longer sent with an error like
2023/05/17 15:46:33 opentelemetry error: failed to upload metrics: context deadline exceeded: rpc error: code = ResourceExhausted desc = grpc: received message larger than max (5528731 vs. 4194304)
for x in {1..1000}; do curl -sSf -H "User-Agent: $(date +curl-%s)" http://localhost:7777/hello > /dev/null; done
Notice that the metrics reported to stdout will include 1000 user agents in perpetuity. I would have expected the aggregation to be reset after each collection period.
If you have a GRPC collector you can run locally, running with
GRPC_ENDPOINT=localhost:4317 go run server/server.go
If you make enough requests you will eventually see the ResourceExhausted message above.
Expected behavior
At the very least, the memory usage should not grow without bounds and the aggregations should not grow until the messages can no longer be sent.
The text was updated successfully, but these errors were encountered:
I do want to say I'm disappointed that the defaults seem to have some pretty large footguns attached. I would personally prefer the defaults to be ones that would not exhaust memory by default, even if that means some metrics are lost.
I do want to say I'm disappointed that the defaults seem to have some pretty large footguns attached. I would personally prefer the defaults to be ones that would not exhaust memory by default, even if that means some metrics are lost.
i totally run into this too. i added opentelemetry and memory is all over the place. how can i use DeltaTemporality? any hints for me?
Description
When running with metrics enabled and using a
PeriodicReader
, memory usage seems to grow continuously until metrics are no longer sent with an error likeEnvironment
Steps To Reproduce
git clone git@github.com:ahobson/opentelemetry-go-contrib.git
cd opentelemetry-go-contrib
git checkout adh-periodic-reader-leak
cd instrumentation/net/http/otelhttp/example
go run server/server.go &
for x in {1..1000}; do curl -sSf -H "User-Agent: $(date +curl-%s)" http://localhost:7777/hello > /dev/null; done
Notice that the metrics reported to stdout will include 1000 user agents in perpetuity. I would have expected the aggregation to be reset after each collection period.
If you have a GRPC collector you can run locally, running with
If you make enough requests you will eventually see the
ResourceExhausted
message above.Expected behavior
At the very least, the memory usage should not grow without bounds and the aggregations should not grow until the messages can no longer be sent.
The text was updated successfully, but these errors were encountered: