Closed Bug 1623300 Opened 4 years ago Closed 4 years ago

Implement the Rust General API for FOG

Categories

(Toolkit :: Telemetry, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: janerik, Assigned: janerik)

References

Details

(Whiteboard: [telemetry:fog:m3])

Attachments

(5 files)

This is the implementation bug for implementing the full Rust general API for Project FOG.
It will have multiple smaller subtasks to split up the work in smaller chunks.

Assignee: nobody → jrediger
Priority: P3 → P1
Blocks: 1623306

This also upgrades the vendored Glean version, which thanks to our
upstream work doesn't change anything else (except one small
Mozilla-developed dependency)

It's still feature-gated to nightly.
In C++ there's now a MOZ_GLEAN define.
For Rust it's behind the glean feature (enabled on nightly only).
The fog crate is empty, so no Glean is actually instantiated.

This passes on dummy values for now.
Still no Glean is initialized, and thus no data placed on disk (and no
temporary or additional profile directories created).
It's done that way to ensure it's actually compiled and called (and make
local development easier).

Depends on D68539

We can re-use the glean_core configuration now.

Depends on D68540

Controlling is two things:

  • initializing Glean
  • toggling upload enabled.

Initializing also means setting the internal metrics (client info), some
of which we detect at build time.

Upload enabled will eventualy be bound to the Firefox preference be
flipped.

Depends on D68542

Document the in-progress code layout in-tree

Depends on D68543

Pushed by jrediger@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d2673451da54
Replace fogotype with the actual FOG crate now. r=chutten
https://hg.mozilla.org/integration/autoland/rev/c04dbe8dd337
Init Glean from old Telemetry. r=chutten
https://hg.mozilla.org/integration/autoland/rev/cbcb3bb23090
Add configuration for Glean. r=chutten
https://hg.mozilla.org/integration/autoland/rev/45fadf903140
Implement the remaining parts of the control API. r=chutten
https://hg.mozilla.org/integration/autoland/rev/5267e6e2015d
Add documentation about FOG code organization. r=chutten

Failed to dead code. For now disabling the lint for that part of the code. We will start using it in the next round of patches coming.

Flags: needinfo?(jrediger)
Pushed by jrediger@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e23c928bd6c7
Replace fogotype with the actual FOG crate now. r=chutten
https://hg.mozilla.org/integration/autoland/rev/fb8612ded5ac
Init Glean from old Telemetry. r=chutten
https://hg.mozilla.org/integration/autoland/rev/216db028c7d4
Add configuration for Glean. r=chutten
https://hg.mozilla.org/integration/autoland/rev/8ce8592bd3e2
Implement the remaining parts of the control API. r=chutten
https://hg.mozilla.org/integration/autoland/rev/50d226c196bc
Add documentation about FOG code organization. r=chutten
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: