elastic / elastic/apm-server

Add index routing based on trace.id

Open
#8,801 2 comments 0 reactions 0 assignees View on GitHub
8.8-candidate discuss enhancement
Dominant language
Go
Stars
1.3k
Forks
543
Avg merge
1d 18h
Merged PRs (30d)
109

Description

Opening this up for discussion:

Should we start routing documents based on `trace.id`.
The thinking here is that we can always rely on a full trace being available in a single shard.

This potentially has the following benefits:

* Can use search time routing to get the data for trace waterfall
* We can reduce trace paths during the `reduce` phase of a scripted metric aggregation.
* Potentially faster joins with ESQL?
* Faster sequencing with EQL?

Unknowns:

* Datastreams require an [explicit opt in to enable routing](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-template.html#put-index-template-api-request-body), what are the consequences of opting in.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.