-
Notifications
You must be signed in to change notification settings - Fork 1
feat: sdk type in metrics metadata #92
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
Conversation
@@ -146,12 +146,19 @@ pub struct ClientApplication { | |||
pub metadata: MetricsMetadata, | |||
} | |||
|
|||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can't derive builder on enums
@@ -417,6 +428,7 @@ mod tests { | |||
"instanceId": "test-instance-id", | |||
"connectionId": "test-connection-id", | |||
"sdkVersion": "rust-1.3.0", | |||
"sdkType": "backend", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lowercase from serde
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So.
If I remember correctly serde's rename lowercase doesn't work on enums. I think you have to use strum
#[strum(serialize_all = "lowercase")]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, but I see you have tests, ignore me then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me. Have a +1
About the changes
Modelling frontend and backend sdk type. This will be used by Unleash to handle frontend and backend apps separately.
Design decisions:
Important files
Discussion points