-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Automatically generate metrics docs using the Glean SDK #5101
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5101 +/- ##
============================================
+ Coverage 11.91% 11.93% +0.02%
Complexity 245 245
============================================
Files 247 247
Lines 10231 10213 -18
Branches 1511 1507 -4
============================================
Hits 1219 1219
+ Misses 8932 8914 -18
Partials 80 80
Continue to review full report at Codecov.
|
17ca0fa
to
cda7905
Compare
cda7905
to
bc595a2
Compare
This is now ready for review. |
As a follow-up to this PR it might be useful for the Fenix team to change the current |
@liuche who do we need to reach out to to ensure that this is sufficient Glean telemetry documentation? |
Good question! I will follow up on this. I believe the Glean team has already checked, but I will make sure the final output fits the requirements. This looks like quite a large diff, so I'm going to go through it and heavily spot-check it, and also get confirmation that this an acceptable format. Mostly looking for details on the extras, making sure those are all there. Quick question @sblatz : Leanplum is documented in MMA.md - moving forward would we still need to handle the telemetry docs differently? |
There is an email thread (you should be CC'd on it @liuche ) in which we asked Michael Feldman about the requirements. We should be fine as long as the format is similar to what Fenix is currently using. For additional safety, we can ask Michael to review the generated file for Fenix. @liuche , are you taking care of that?
I can already tell you that static labels for
No, this is Glean only. Any non-Glean documentation should be moved to a separate file. Alternatively, you could add some notice in the metrics description in Note: this PR is aiming at a moving target. Every time a metric is added, this PR needs to be rebased in order to generate up-to-date docs :) |
@Dexterp37 how does text added from metrics.yaml get represented in metrics.md - through the metrics description? Is |
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.
This looks good to me. It's just the automated version of metrics.yaml
, and the metrics.md
output is the same. This format also looks clear to me.
Next steps are to get this rebased/regenerated, and then we can land it.
@boek are there parts/steps of the Fenix documentation generation flow that can be removed now? |
The metric's We also analyse the Update our jinja2 template for markdown lives here |
bc595a2
to
a94e9da
Compare
3cff333
to
a94e9da
Compare
a94e9da
to
49ebb35
Compare
Create the docs from the Glean SDK metrics and ping files.
The current problem with this is that the file is generated inapp/docs/metrics.md
, but the existing file lives indocs/metrics.md
.Potential solutions:
we keep the file in the current locationNote: This depends on mozilla-mobile/android-components#4303
cc @sblatz @boek @liuche
Pull Request checklist