-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
refactor(analytics): Adds tenant ID to Analytics Provider #4594
Conversation
I have added tenant_id param to from_conf method. Is that the correct way? @lsampras |
crates/analytics/src/lib.rs
Outdated
#[derive(Clone, Debug)] | ||
pub struct TenantID(String); |
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.
Can you move this struct definition to the common_utils crate?
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.
I moved it to types.rs in common_utils crate and added #[allow(unused)] in some places so clippy can stop complaining. Is that fine?
@RaghavRox the latest commit fails to compile due to some errors, |
f30b4a1
cbc9ec4
the changes here are covered in #4867 |
Closes #4521
Type of Change
Description
Adds TenantID field to SqlxClient and ClickHouseClient
Additional Changes
Motivation and Context
How did you test it?
Checklist
cargo +nightly fmt --all
cargo clippy