-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(visibility): Clamp date range for TagStore queries
#81363
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
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
| assert isinstance(e, (FooBarError, APIException)) | ||
|
|
||
|
|
||
| class ClampDateRangeTest(unittest.TestCase): |
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.
What happens if max_timedelta is set to 0?
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.
I decided to allow 0 there, since I don't want to throw any exceptions. Added a test!
Co-authored-by: Tony Xiao <txiao@sentry.io>
Co-authored-by: Tony Xiao <txiao@sentry.io>
|
@Zylphrex took your suggestions, thanks! |
* master: (219 commits) fix: flatten searchable os distribution fields (#81297) chore(profiling): Remvoe unused profile functions metrics hook (#81396) fix(prompts): Properly return false instead of undefined when prompt data is null (#81404) fix(insights): broken screen rendering doc link (#81257) fix(rpc): Only groupby when needed (#81403) feat(grouping): Tally frame types while building exception grouping components (#81341) fix(similarity): Limit > 30 system frame check to Java (#81385) feat(alerts): Adds EAP spans results consumer configs (#81365) ref(insights): simplify domain view header by using tab links (#81324) fix(issues): Add projectId for flag onboarding on click (#81387) chore(flamegraphs): Remove unused legacy flamegraph code path (#81381) fix(performance): No table overflow + glitchy behaviour (#81378) feat(widget-builder): Add feature flag for redesign (#81377) feat(profiling): Clean up continuous profiling ui and compat flags (#81260) feat(visibility): Clamp date range for `TagStore` queries (#81363) test(taskbroker): Add CLI command for sending taskbroker tasks (#81319) feat(dashboards): Add ff for favouriting dashboards (#81368) fix(trace) match event_id by error (#81370) fix(insights): add missing slash on performance moving banner (#81364) ref(models): Include event id in `Event` repr (#81345) ...
Follow-up and complement to #80332. In short, `SAMPLE` wasn't enough. For longer ranges (i.e., >30d) fetching a list of project tags still times out. In this PR, we're adding time range clamping for fetching tag keys. We will only ever query a maximum of N days (14 for now, but it's configurable). If someone chooses to get tags for the last 90 days, they will get tags from the last 14 days. If they need tags from November 5th - November 10th, we will fetch the range they asked for. We think this is a reasonable compromise. When tags don't load at all, autocomplete stops working, which is very bad UX. Limiting the date range to 14 days is a tradeoff. The tags will succeed more often, but some tags might be missing. Also, limiting the range should improve the cache hit ratio a bit, but we'll see. --------- Co-authored-by: Tony Xiao <txiao@sentry.io> Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Follow-up and complement to #80332. In short,
SAMPLEwasn't enough. For longer ranges (i.e., >30d) fetching a list of project tags still times out.In this PR, we're adding time range clamping for fetching tag keys. We will only ever query a maximum of N days (14 for now, but it's configurable). If someone chooses to get tags for the last 90 days, they will get tags from the last 14 days. If they need tags from November 5th - November 10th, we will fetch the range they asked for.
We think this is a reasonable compromise. When tags don't load at all, autocomplete stops working, which is very bad UX. Limiting the date range to 14 days is a tradeoff. The tags will succeed more often, but some tags might be missing.
Also, limiting the range should improve the cache hit ratio a bit, but we'll see.