-
Notifications
You must be signed in to change notification settings - Fork 220
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
MNTOR-3096 - add monitor glean backend #4544
Conversation
…r-glean-backend
Preview URL 🚀 : https://blurts-server-pr-4544-mgjlpikfea-uk.a.run.app |
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.
r+wc
In bug 1896992 I also asked @akkomar to take a look at this, since he has more expertise on Glean backend telemetry.
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.
Metrics definitions look good to me, apart from missing send_in_pings
declaration.
We'll now want to integrate glean_parser in the build and generate logging code.
We have some docs now at https://mozilla.github.io/glean/book/user/adding-glean-to-your-project/server.html#how-to-add-glean-server-side-collection-to-your-service and you can also compare how FxA did this.
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.
r+wc
The updated subscription.cancel
event description looks good. Just the one remaining send_in_pings
issue that should be fixed.
…r-glean-backend
…kend' into MNTOR-3096/add-monitor-glean-backend
Thanks! I will review the docs and example, just FYI we split this part of the work to a separate ticket to fit better into our sprints. |
No problem, thanks! I'll revert that commit. |
This reverts commit 194207a.
…kend' into MNTOR-3096/add-monitor-glean-backend
I hate to flip-flop on this again, but I just realized there's another factor that probably tips the scales back toward having those IDs as string metrics: data access/deletion requests. It'd be much more straightforward to handle those if the IDs are simple columns rather than being in the array structure the extra keys values end up in. So now I'm thinking we should use string metrics for the user/session-level properties in both the backend and the frontend (which would involve changing frontend telemetry, with LookML overrides to fall back to the previous location for those values in earlier frontend events), but with the following naming/hierarchy so the final metric names/columns make sense and aren't repeated with different categories/prefixes:
@akkomar what do you think? |
@sean-rose Good point, these request (DSR) would be easier to handle with ping-level metrics.
Naming/hierarchy looks good to me. Ideally, to make this even easier for DSAR we could have some standardized naming conventions for these identifiers. But I wouldn't split hairs over this as we'll already need to support customizations because of https://bugzilla.mozilla.org/show_bug.cgi?id=1889123. As for switching the frontend part too - do you know how much effort this requires? It would be great to have these fields consistently in string metrics, but I'm not sure a migration in frontend is worth it. Also it seems to me that unless we rewrite the old data, we'll need to support identfiers in extras for DSRs anyway until this data expires. FYI @ksiegler1 |
I'd hope most of the additional complexity could be contained in centralized code similar to how FxA is doing it, in which case it probably wouldn't be a ton of effort, but that's optimistic speculation on my part. @rhelmer what do you think?
It should be pretty easy to populate the new string metric columns for historical records using a simple IMO it'd be worth some reasonable effort now to put things in a more supportable state going forward. |
I think migrating the front-end is doable, I'd need to do it in a separate ticket though. I can convert the |
@sean-rose I reverted back to the previous version of the |
Yes, you'll need to modify
|
OK thanks @sean-rose lmk if this is what you were expecting. |
Not exactly:
I tried pushing a commit to correct those issues myself, but it turns out I don't have access (which makes sense), so I'll add a separate comment with the changes I'd recommend as one big code suggestion. |
Co-authored-by: Sean Rose <[email protected]>
Cleanup completed - database 'blurts-server-pr-4544' destroyed, cloud run service 'blurts-server-pr-4544' destroyed |
References:
Jira: MNTOR-3096
Description
Screenshot (if applicable)
Not applicable.
How to test
Checklist (Definition of Done)