-
Notifications
You must be signed in to change notification settings - Fork 23
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
Implement telemetry send operation using telemetry plugin #405
Conversation
00f4a36
to
69fd668
Compare
69fd668
to
eb4f2c7
Compare
f34a46b
to
c1f5849
Compare
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.
Just one minor comment. But overall looks good.
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.
LGTM, Thanks.
- CLI would use the telemetry plugin to send the metrics to supercollider - To avoid latency incurred due to send metrics call,affecting users in every command, telemetry data would be sent only if user opt-in for CEIP and the number of rows in DB is hits a threshold - User should set environment variable 'TANZU_CLI_SUPERCOLLIDER_ENVIRONMENT' to "staging" inorder to send the metrics to staging data lake(default is production - If user sets `TANZU_CLI_SUPERCOLLIDER_ENVIRONMENT` to "staging" the "is_internal" metrics would set to true - Removed csp_org_id and account_number from the local schema as telemetry plugin would be adding these values as metadata Signed-off-by: Prem Kumar Kalle <[email protected]>
c1f5849
to
8e01a13
Compare
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.
LGTM. Thanks!
What this PR does / why we need it
This PR implements telemetry send operation using telemetry plugin
Summary:
TANZU_CLI_SUPERCOLLIDER_ENVIRONMENT
to "staging" the "is_internal" metrics would set to truecsp_org_id
andaccount_number
from the local schema as telemetry plugin would be adding these values as metadataWhich issue(s) this PR fixes
Fixes #
Describe testing done for PR
Build and installed the telemetry plugin locally and performed the below tests
Ran the
tanzu plugin search
command andtanzu mc get
command few times until we hit the send threshold(currently set to 10, but may change). Once the threshold is reached the metrics data in DB data is drained and sent to supercolliderRelease note
Additional information
Special notes for your reviewer