Skip to content

Conversation

narsaynorath
Copy link
Member

Some users are experiencing high latency due to this cardinality check. Since metrics extraction for widgets has paused and we're in the process of migrating users to spans/EAP, I figured we could avoid running this check for users that do not have the feature flag if we're not planning to continue rolling it out.

e.g. this trace shows 15s waiting for the cardinality check for an org that doesn't have access

@narsaynorath narsaynorath requested a review from k-fish September 3, 2025 17:22
@narsaynorath narsaynorath requested a review from a team as a code owner September 3, 2025 17:22
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 3, 2025
is_task: bool = False,
widget_query: DashboardWidgetQuery | None = None,
) -> dict[str, str]:
if not features.has("organizations:on-demand-metrics-extraction-widgets", organization):
Copy link
Member Author

Choose a reason for hiding this comment

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

@k-fish would you be able to advise if this is okay for us to do? I suppose when we migrate fully to EAP then we can get rid of this, but in an effort to make some easy progress for other users, I figured we could just feature flag this check

It seems like we wanted to evaluate it even without the feature flag so when we rolled out, people's queries were good to go

Copy link
Member

@k-fish k-fish Sep 10, 2025

Choose a reason for hiding this comment

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

We can get rid of the flag if we confirm if any of the orgs are not still on am1 / their widgets work on EAP

In theory yes, we were supposed to check so that we could roll it out for every org, but am3 came along. We're okay skipping it for extraction widgets.

Can you copy the test with the flag to assert the old behaviour? otherwise it's fine I think

is_task: bool = False,
widget_query: DashboardWidgetQuery | None = None,
) -> dict[str, str]:
if not features.has("organizations:on-demand-metrics-extraction-widgets", organization):
Copy link
Member

@k-fish k-fish Sep 10, 2025

Choose a reason for hiding this comment

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

We can get rid of the flag if we confirm if any of the orgs are not still on am1 / their widgets work on EAP

In theory yes, we were supposed to check so that we could roll it out for every org, but am3 came along. We're okay skipping it for extraction widgets.

Can you copy the test with the flag to assert the old behaviour? otherwise it's fine I think

@narsaynorath narsaynorath enabled auto-merge (squash) September 15, 2025 15:51
@narsaynorath narsaynorath merged commit 02ae306 into master Sep 15, 2025
62 of 64 checks passed
@narsaynorath narsaynorath deleted the nar/feat/dashboards-feature-flag-cardinality-check branch September 15, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants