Skip to content
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

API to retrieve trace spans in bulk for multiple trace ids #4491

Open
nielsreijers opened this issue Dec 24, 2024 · 0 comments
Open

API to retrieve trace spans in bulk for multiple trace ids #4491

nielsreijers opened this issue Dec 24, 2024 · 0 comments

Comments

@nielsreijers
Copy link

Is your feature request related to a problem? Please describe.

We're building a system to analyse failures, where we need to take a samples of sufficient size from failed and successful requests to find the common causes for requests to fail.

As input we have a set of trace ids, which we currently retrieve one by one through the GET /api/traces/<traceID> endpoint.

This takes some time, even with start and end parameters set. In our setup, older traces already moved to the back end storage take anywhere from 400 to 1000ms.

Since all traces are in the same time window, an endpoint that would allow us to get multiple traces at once could probably be much more efficient.

Describe the solution you'd like
An endpoint that accepts a list of trace ids instead of a single trace id and returns all found traces in one response.

Describe alternatives you've considered
We're currently retrieving them in parallel, but this doesn't seem to scale beyond a speedup of around 4-5x.

Additional context

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

No branches or pull requests

2 participants