-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
feat(eap): implement backend for "what tag values exist" RPC #6304
Conversation
snuba/web/rpc/trace_item_values.py
Outdated
# multiSearchAny has special treatment with ngram bloom filters | ||
# https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree#functions-support | ||
f.multiSearchAny( | ||
column("attr_value"), | ||
literals_array(None, [literal(request.value_substring_match)]), | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what happens when request.value_substring_match
is empty but when that happens we should just return any result. Perhaps this condition can be optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's empty this condition is a no-op since every string contains the empty string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved but please rename the files
This uses RPC calls to fetch tag values from eap spans. depends on getsentry/snuba#6304 --------- Co-authored-by: William Mak <william@wmak.io>
If you have spans with tags like "hello": "world" and "hello": "blah", you'd like to be able to say 'what values are possible for key="hello"?'
This endpoint implements that functionality.