Skip to content

[exporter/elasticsearch] Profiling: Duplicate events if count > 1 #40947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rockdaboot
Copy link
Contributor

Description

Due to nanosecond timestamp resolution, the probability of events having a Stacktrace.count value > 1 is very low. For the rare cases where it is, we can write multiple identical events. The compression in Elasticsearch will handle this very well.

On the read/query side, things would be come less complex, and random sampling could be applied (requirement is that every event has the same "weight" aka count). Random sampling can reduce latency for queries.

Link to tracking issue

Fixes #40946

@rockdaboot
Copy link
Contributor Author

See also elastic/elasticsearch#130293

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[exporter/elasticsearch] Profiling: duplicate events if count > 1
3 participants