Skip to content

TraceQL: Speed up autocomplete tag processing by 100x #96862

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

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

leeoniya
Copy link
Contributor

Fixes #96847
Fixes https://github.com/grafana/support-escalations/issues/13320

TraceQL autocomplete exhibited a bottleneck in tag processing, this is for ~30k tags:

image

after refactoring we get about 100x speedup:

image

@leeoniya leeoniya requested a review from a team as a code owner November 21, 2024 18:35
@leeoniya leeoniya requested review from aocenas and adrapereira and removed request for a team November 21, 2024 18:35
@github-actions github-actions bot added this to the 11.4.x milestone Nov 21, 2024
@leeoniya leeoniya self-assigned this Nov 21, 2024
Copy link
Contributor

@adrapereira adrapereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@leeoniya leeoniya added the no-changelog Skip including change in changelog/release notes label Nov 21, 2024
@leeoniya leeoniya enabled auto-merge (squash) November 21, 2024 18:52
@leeoniya leeoniya merged commit 3e79ead into main Nov 21, 2024
26 checks passed
@leeoniya leeoniya deleted the leeoniya/tempo-traceql-autocomplete-perf branch November 21, 2024 18:52
@zserge zserge modified the milestones: 11.4.x, 11.4.1, 11.4.0 Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend datasource/Tempo no-changelog Skip including change in changelog/release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tempo: Profile and improve performance of TraceQL query editor
3 participants