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

[Bug 1883593] Instrumentation to capture more clicks via glean #2164

Merged
merged 7 commits into from
Mar 27, 2024

Conversation

abhi-agg
Copy link
Contributor

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1883593

Pull Request checklist

  • The pull request has a descriptive title (and a reference to an issue it
    fixes, if applicable)
  • All tests and linter checks are passing
  • The pull request is free of merge conflicts

@abhi-agg abhi-agg marked this pull request as draft March 26, 2024 09:55
 - An empty string causes glean's data attributes to be present
   in Consumers that don't pass these props, causing clicks to be recorded
   in them

 - As per https://svelte.dev/docs/basic-markup#attributes-and-props,
   setting it to "null"
@abhi-agg
Copy link
Contributor Author

abhi-agg commented Mar 26, 2024

@rosahbruno I have added a new instrumentation in the code to capture clicks on links corresponding to Looker row in Access section of the Metric Detail page.

Would it be possible for you to give me an early feedback on this instrumentation? I just want to make sure that I am heading in right direction as a lot of instrumentation will follow the same pattern. Thanks.

 - Capture clicks in "Access" section
 - Capture clicks on "Sampling Configuration Snippet" inside "Metric sampling" section
 - Capture clicks on "Metrics", "Pings", "Tags", "Application IDs" and
   "Third-Party Data" tabs
@abhi-agg
Copy link
Contributor Author

Okay. I am marking this PR read to review. This PR adds instrumentation to capture clicks on:

  1. Metric details page: Clicks on Access section (bottom most) and Sampling Configuration Snippet row inside Metric sampling section

  2. App details page: Clicks on Metrics, Pings, Tags, Application IDs and Third-Party Data tabs

I have tested this change locally and it works as expected.

@abhi-agg abhi-agg marked this pull request as ready for review March 26, 2024 15:32
Copy link
Member

@travis79 travis79 left a comment

Choose a reason for hiding this comment

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

Looks good to me, with one minor question/nit about formatting in one place.

src/pages/AppDetail.svelte Show resolved Hide resolved
@abhi-agg abhi-agg merged commit b15f8f7 into mozilla:main Mar 27, 2024
7 checks passed
@abhi-agg abhi-agg deleted the glean-click-events branch March 27, 2024 08:40
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.

3 participants