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
@@ -423,6 +423,9 @@ def check_field_cardinality(
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

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.

1 participant