Skip to content

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

@andrzej-stencel andrzej-stencel merged commit 2a41286 into open-telemetry:main Jul 7, 2025
177 checks passed
@github-actions github-actions bot added this to the next release milestone Jul 7, 2025
Dylan-M pushed a commit to Dylan-M/opentelemetry-collector-contrib that referenced this pull request Aug 5, 2025
…en-telemetry#40947)

#### 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 open-telemetry#40946
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

5 participants