Closed Bug 1529761 Opened 6 years ago Closed 5 years ago

META: Organize glean documentation

Categories

(Data Platform and Tools :: Glean: SDK, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mdroettboom, Assigned: mdroettboom)

References

Details

(Whiteboard: [telemetry:mobilesdk:m8])

We currently have:

(1) General documentation about how glean works in android-components

(2) Documentation about metric types and the various parameters in a Google Doc

(3) API documentation for the Kotlin implementation

(4) API documentation for glean_parser

I would propose that we merge (1) and (2) in a central location, and start using version control to manage it. (3) and (4) would continue to exist in their language-specific form next to the source code, but would simply link to (1/2) for further general information about glean.

It was also noted that there is a major reorganization of the code pending as part of the oxidation effort. I think even when that happens, this documentation organization makes sense, even if all the parts live in the same repo, for example.

Priority: -- → P3
Blocks: 1491345
Whiteboard: [telemetry:mobilesdk:m?] → [telemetry:mobilesdk:backlog]
See Also: → 1532213

Could we, for now, keep (1) and (2) in android-components and move it to the single, separate Glean repository once that is active?

That would keep documentation changes side-by-side with the code changes.
Keeping things up-to-date in two separate locations seems harder to track.

I think for Desktop Telemetry, we had good experiences with the library documentation living side-by-side with the code.

(In reply to Georg Fritzsche [:gfritzsche] from comment #2)

Could we, for now, keep (1) and (2) in android-components and move it to the single, separate Glean repository once that is active?

+1 on this.

As a follow-up to https://github.com/mozilla-mobile/android-components/pull/2353, two comments:

Whiteboard: [telemetry:mobilesdk:backlog] → [telemetry:mobilesdk:m8]
Component: Telemetry → Glean: SDK
Product: Toolkit → Data Platform and Tools

Additionally, we also have documentation in probe_scraper about how to declare a Glean-using app or library for probe scraping.

Assignee: nobody → mdroettboom
Depends on: 1555975
Depends on: 1555976
Summary: Organize glean documentation → META: Organize glean documentation
Depends on: 1556486

The current status:

  1. The main Glean documentation lives in github.com/mozilla/glean and includes:

    a) User documentation
    b) Developer documentation
    c) Kotlin API docstrings
    d) Rust core (non-public API) docstrings

  2. android-components merely links to (1)

  3. probe-scraper includes documentation about adding support for a new Glean-using application or library

  4. glean_parser includes:

    a) some documentation about the metrics.yaml format.
    b) Python API docstrings for users of glean_parser (which includes probe_scraper as well as the Glean build itself)

Depends on: 1562681
Depends on: 1559133
Depends on: 1562880
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.