fune/toolkit/components/glean/pytest
Jan-Erik Rediger 8321cd2247 Bug 1693486 - Implement new event extra API. r=chutten
This drops the _old_ API fully and implements support only for the new object-focused API,
regardless of `type` defintions in metrics.yaml.

The new API will look like the following examples:

Rust

    let extra = AnEventKeys {
        extra1: Some("a-value".into()),
        ..Default::default()
    };
    category::an_event.record(extra);

(Note: not optimal yet, but we can extend this with a builder-like
pattern later)

C++

    AnEventExtra extra = { .extra1 = Some("value"_ns) };
    category::an_event.Record(Some(extra));

JavaScript (actually unchanged!)

    let extra = { extra1: "value" };
    Glean.category.anEvent.record(extra);

(Note: The JavaScript API accepts strings, booleans and integers for any
extra value and will stringify them regardless of their specified type.)

Differential Revision: https://phabricator.services.mozilla.com/D114498
2021-06-02 16:07:56 +00:00
..
expect_helper.py Bug 1714036 - Add a way to automatically update the expected file contents for Glean tests. r=chutten 2021-06-02 15:27:05 +00:00
gifft_output_Event
gifft_output_EventExtra Bug 1693486 - Implement new event extra API. r=chutten 2021-06-02 16:07:56 +00:00
gifft_output_Histogram
gifft_output_Scalar
metrics_expires_number_test.yaml
metrics_expires_versions_test.yaml
metrics_test.yaml Bug 1693486 - Implement new event extra API. r=chutten 2021-06-02 16:07:56 +00:00
metrics_test_output Bug 1693486 - Implement new event extra API. r=chutten 2021-06-02 16:07:56 +00:00
metrics_test_output_cpp Bug 1693486 - Implement new event extra API. r=chutten 2021-06-02 16:07:56 +00:00
metrics_test_output_js
pings_test.yaml
pings_test_output
pings_test_output_cpp
pings_test_output_js
python.ini
test_gifft.py Bug 1714036 - Add a way to automatically update the expected file contents for Glean tests. r=chutten 2021-06-02 15:27:05 +00:00
test_glean_parser_cpp.py Bug 1714036 - Add a way to automatically update the expected file contents for Glean tests. r=chutten 2021-06-02 15:27:05 +00:00
test_glean_parser_js.py Bug 1714036 - Add a way to automatically update the expected file contents for Glean tests. r=chutten 2021-06-02 15:27:05 +00:00
test_glean_parser_rust.py Bug 1714036 - Add a way to automatically update the expected file contents for Glean tests. r=chutten 2021-06-02 15:27:05 +00:00
test_no_expired_metrics.py