-
Notifications
You must be signed in to change notification settings - Fork 244
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
Devfile registry telemetry integration #5101
Devfile registry telemetry integration #5101
Conversation
Signed-off-by: Jingfu Wang <[email protected]>
Signed-off-by: Jingfu Wang <[email protected]>
Signed-off-by: Jingfu Wang <[email protected]>
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.
@GeekArthur WDYT about putting telemetryClient
as a const
in one place in the code and reuse it at places where you have currently defined it? IMO, it could go into pkg/odo/cli/registry/util/util.go
along with what we presently have there:
const (
RegistryUser = "default"
)
Thoughts @feloy @valaparthvi ?
Make sense, thanks for suggesting the shared file |
I agree to put the constant in a common place, but the |
+1 |
Signed-off-by: Jingfu Wang <[email protected]>
✔️ Deploy Preview for odo-docusaurus-preview ready! 🔨 Explore the source changes: a35d72d 🔍 Inspect the deploy log: https://app.netlify.com/sites/odo-docusaurus-preview/deploys/6155d70f0bb32700088cf5ac 😎 Browse the preview: https://deploy-preview-5101--odo-docusaurus-preview.netlify.app |
Kudos, SonarCloud Quality Gate passed! |
|
It seems like an test automation infrastructure issue, probably need to use absolute path instead of relative path for go |
/retest |
1 similar comment
/retest |
@GeekArthur Things lgtm from code perspective, but I was unable to see any data in Devfile Registry on Segment, or was I looking in the wrong place? I tested with |
I thinik the telemetry data for this will show up on devfile registry side, and not on odo side. Correct me if I'm wrong @GeekArthur. |
Yes, you are right, the telemetry data is on devfile registry side as odo is the client that consumes registry library to interact with devfile registry. @valaparthvi You can check the telemetry data of devfile registry here: https://app.segment.com/redhat-devtools/sources/devfile-registry/overview |
/retest |
@GeekArthur: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
That is what I did before, but I did not see any data on |
@dharmit @valaparthvi Can you please review to see if it looks good to you? The failing tests from
Yes, I can see the data from odo by verifying the |
/retest |
@dharmit can you confirm if you can see the data in Devfile Registry and maybe approve it ? |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kadel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Jingfu Wang [email protected]
What type of PR is this?
/kind feature
What does this PR do / why we need it:
The change is to let odo consume the latest registry library for enabling the devfile registry telemetry on client side.
Which issue(s) this PR fixes:
Related issue: devfile/api#281
PR acceptance criteria:
Unit test
Integration test
Documentation
I have read the test guidelines
How to test changes / Special notes to the reviewer:
Run
odo catalog
andodo create
commands then monitor the community registry telemetry to see if the data can be collected.