fune/toolkit/components/glean
Chris H-C 280af19463 Bug 1688281 - Add IPC support to FOG Labeled Counters r=janerik
Since the submetric deals with IPCPayload, the submetric needs to know its
label. We could add that to CounterMetric::Child, but adding an optional label
to the child variant of CounterMetric looked strange.

So instead, I introduce the Labeled*Metric types.
Well, LabeledStringMetric and LabeledBooleanMetric are just re-exports.
But LabeledCounterMetric knows its label in non-parent processes.
And in parent processes it just acts like a normal CounterMetric, thanks to the
metric traits.

To figure out how to handle all these types it encouraged me to remove lambdas
from the MLA FFI and solve it with hygienic identifier capture instead. Bonus.

Here's hoping I don't regret this additional level of abstraction later.

Differential Revision: https://phabricator.services.mozilla.com/D107667
2021-03-10 17:51:30 +00:00
..
api Bug 1688281 - Add IPC support to FOG Labeled Counters r=janerik 2021-03-10 17:51:30 +00:00
bindings Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin 2021-03-10 10:47:47 +00:00
build_scripts/glean_parser_ext Bug 1688281 - Add IPC support to FOG Labeled Counters r=janerik 2021-03-10 17:51:30 +00:00
docs Bug 1695197 - Remove MOZ_GLEAN constant, introduce MOZ_GLEAN_ANDROID. r=chutten,emilio 2021-03-04 11:15:12 +00:00
gtest Bug 1695197 - Remove MOZ_GLEAN constant, introduce MOZ_GLEAN_ANDROID. r=chutten,emilio 2021-03-04 11:15:12 +00:00
ipc Bug 1694739 - FOG IPC flush after 5s of idle r=janerik 2021-03-08 18:27:53 +00:00
pytest Bug 1688281 - Add IPC support to FOG Labeled Counters r=janerik 2021-03-10 17:51:30 +00:00
sphinx
src Bug 1696890 - Remove fog_validation data collections r=TravisLong 2021-03-08 20:57:18 +00:00
xpcom Bug 1694739 - FOG IPC flush after 5s of idle r=janerik 2021-03-08 18:27:53 +00:00
xpcshell Bug 1688281 - Add IPC support to FOG Labeled Counters r=janerik 2021-03-10 17:51:30 +00:00
Cargo.toml Bug 1680025 - Disable FOG ping upload in developer builds r=janerik 2021-02-05 11:08:50 +00:00
cbindgen.toml
metrics.yaml Bug 1696890 - Remove fog_validation data collections r=TravisLong 2021-03-08 20:57:18 +00:00
metrics_index.py
moz.build Bug 1695197 - Remove MOZ_GLEAN constant, introduce MOZ_GLEAN_ANDROID. r=chutten,emilio 2021-03-04 11:15:12 +00:00
pings.yaml Bug 1696890 - Remove fog_validation data collections r=TravisLong 2021-03-08 20:57:18 +00:00
test_metrics.yaml Bug 1688281 - Add IPC support to FOG Labeled Counters r=janerik 2021-03-10 17:51:30 +00:00
test_pings.yaml