-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Session Aggregates are randomly dropped #2967
Comments
It appears like running the script against a single pop instance also works. |
Did not notice anything obvious in the code ( |
There's definitely an edge case in which we aggregate & attempt to send metrics even though the project has expired (see #2987), but I doubt that it explains the behavior above. |
Metrics that arrive through the global metrics endpoint do not currently trigger a refetch of the project config. If a single processing relay only receives metrics traffic (no envelopes) for a specific project, metrics might get stuck in the pre-aggregator a.k.a. metrics buffer. ref: #2967
Seems fixed by #2987: Problem seems to have been project configs not being actively fetched when the only incoming traffic (from processing relay's point of view) is metrics via the global endpoint. See linked PR for details. |
Waiting for customer to confirm that the issue is fixed for them. |
Session aggregates are being dropped/lost before the reach Kafka/Storage.
We could verify by peeking into the Kafka Topic that the aggregates (as metrics) never make it into Kafka.
From the Kafka Topic:
In the UI:
Expected to see one entry every minute with a value of 30.
Script which generates an envelop containing a session aggregate every minute:
I was not able to reproduce this with a local Sentry and Relay instance, Relay consistently delivered the metrics into the Kafka topic.
The local instance had the following non-standard settings:
I manually verified that the
sessionMetrics
setting in the project config matches the production oneversion: 2, drop: true
.The text was updated successfully, but these errors were encountered: