-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Incomplete recent recent traces with elasticsearch backend #2231
Description
Hey,
This isn't a problem with Jaeger per-se, more of an issue when you're using Jaeger with Elasticsearch backend.
Because spans come in asynchronously (and batched from collectors), and then the index is refreshed on an interval (say, 10s), its quite typical for the most recent traces to appear broken:
Then when you refresh 10/15s later, it's all nice complete:
This leads to such an unbelievable amount of "tracing is broken" comments to the platform team, so i'm trying to think about ways to handle it.
There is no requirement for "near real time" traces, so ideally i'm trying to find a way to ensure that traces don't become visible in search for say, 60s after the first span has come in (subsequently giving time for all spans to come in).
The only way I can think of doing this would be if elasticsearch exposed a time offset configuration for this storage backend, which effectively never returned results newer than 1 minute old when using the Last Hour time default.
Or perhaps have a config option to suppress results which are "trace-without-root-span"?
I'm open to ideas!

