Skip to content
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

Fix glean metrics not showing after fix for Categorical probes #2817

Merged
merged 2 commits into from
May 14, 2024

Conversation

edugfilho
Copy link
Collaborator

This fixes the bug introduced in #2779, which searches for a field that's not present into Glean metrics' metadata.

@edugfilho edugfilho requested a review from Iinh May 14, 2024 18:52
Comment on lines +17 to +18
let isCategoricalProbe =
$store.probe.details && $store.probe.details.kind === 'categorical';
Copy link
Contributor

Choose a reason for hiding this comment

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

would this only work with Glean metrics? how about categorical histograms?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My understanding is we want it to be true iff it's a Legacy probe and it's categorical, no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Legacy probes have details whereas Glean metrics don't. Categorical histograms have to have isCategoricalProbe === true

Copy link
Contributor

Choose a reason for hiding this comment

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

ah yea thanks for the clarification. could you remind me why we don't need to check for categorical glean probes here - distribution comparison is not available for glean probes yet?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't think Glean had categorical probes. I did a quick look up at Glean dictionary and didn't find any. Oh, are they under a different name?

Copy link
Contributor

@Iinh Iinh May 14, 2024

Choose a reason for hiding this comment

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

I think Glean boolean probes have categorical view in Glam, but will need to check if we even display these.

boolean: 'categorical',

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hm, if that's the case GLAM doesn't support boolean probes

Copy link
Contributor

@Iinh Iinh left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

@edugfilho edugfilho merged commit 9a50c3a into main May 14, 2024
4 checks passed
@edugfilho edugfilho deleted the fix-distcomp-glean-probe-details branch May 14, 2024 19:45
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants