Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1839640 - Add new metric type: object #2489

Merged
merged 5 commits into from Feb 20, 2024
Merged

Bug 1839640 - Add new metric type: object #2489

merged 5 commits into from Feb 20, 2024

Conversation

badboy
Copy link
Member

@badboy badboy commented Jun 5, 2023

Requires mozilla/glean_parser#587

Far from ready, requires tests and more work, e.g. APIs so we can properly implement it for C++ and JS.

@badboy badboy changed the title Add new metric type: object Bug 1839640 - Add new metric type: object Aug 16, 2023
@badboy badboy marked this pull request as ready for review January 22, 2024 11:07
@badboy badboy requested a review from a team as a code owner January 22, 2024 11:07
@badboy badboy requested review from chutten and removed request for a team January 22, 2024 11:07
@badboy
Copy link
Member Author

badboy commented Jan 22, 2024

There's still a couple of things I need to get in order for this to land, but it's good for a first review.

glean-core/src/metrics/mod.rs Outdated Show resolved Hide resolved
glean-core/src/metrics/object.rs Outdated Show resolved Hide resolved
glean-core/src/metrics/object.rs Outdated Show resolved Hide resolved
glean-core/src/metrics/object.rs Outdated Show resolved Hide resolved
glean-core/src/metrics/object.rs Outdated Show resolved Hide resolved
glean-core/src/metrics/object.rs Outdated Show resolved Hide resolved
glean-core/src/metrics/object.rs Outdated Show resolved Hide resolved
glean-core/src/traits/object.rs Outdated Show resolved Hide resolved
glean-core/src/traits/object.rs Outdated Show resolved Hide resolved
glean-core/rlb/src/private/object.rs Show resolved Hide resolved
@badboy badboy force-pushed the object-type branch 2 times, most recently from 24558ef to 28830ef Compare January 25, 2024 10:25
@badboy badboy force-pushed the object-type branch 3 times, most recently from 6537fa2 to 4a8ac5e Compare January 31, 2024 13:25
@badboy badboy force-pushed the object-type branch 4 times, most recently from e6999c4 to be6afe7 Compare February 14, 2024 13:56
@badboy badboy requested a review from chutten February 14, 2024 14:22
Copy link
Contributor

@chutten chutten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+wc

(Okay, so maybe you should've asked for a US reviewer)

docs/user/reference/metrics/object.md Outdated Show resolved Hide resolved
docs/user/reference/metrics/object.md Outdated Show resolved Hide resolved
docs/user/reference/metrics/object.md Outdated Show resolved Hide resolved
docs/user/reference/metrics/object.md Outdated Show resolved Hide resolved
glean-core/rlb/src/private/object.rs Outdated Show resolved Hide resolved
glean-core/src/metrics/object.rs Show resolved Hide resolved
/// Gets the currently stored value as JSON-encoded string.
///
/// This doesn't clear the stored value.
pub fn test_get_value(&self, ping_name: Option<String>) -> Option<String> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment: It does strike me as... asymmetric that we set a JsonValue but get a String. I understand why get is a String: glean-core doesn't know the structure. And I'm guessing set is a JsonValue because it's the strongest type we can manage.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, to be addressed in a followup

samples/rust/metrics.yaml Outdated Show resolved Hide resolved
samples/rust/src/main.rs Show resolved Hide resolved
samples/rust/src/main.rs Show resolved Hide resolved
@badboy badboy merged commit 78e85ac into main Feb 20, 2024
29 of 30 checks passed
@badboy badboy deleted the object-type branch February 20, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants