-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add OpenTelemetry tracing to minikube #9723
Conversation
/ok-to-test |
kvm2 Driver |
@@ -152,6 +153,7 @@ func initMinikubeFlags() { | |||
startCmd.Flags().Bool(deleteOnFailure, false, "If set, delete the current cluster if start fails and try again. Defaults to false.") | |||
startCmd.Flags().Bool(forceSystemd, false, "If set, force the container runtime to use sytemd as cgroup manager. Currently available for docker and crio. Defaults to false.") | |||
startCmd.Flags().StringVarP(&outputFormat, "output", "o", "text", "Format to print stdout in. Options include: [text,json]") | |||
startCmd.Flags().StringP(trace, "", "", "Send trace events. Options include: [gcp]") |
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.
how about adding a check in the validate flags that if the option is not gcp, yell at them and say the valid options are ...
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 added the valid options to the error message that will be displayed, this is what it would look like:
$ minikube start --trace dne
❌ Exiting due to MK_USAGE: error initializing tracing: getting tracer: dne is not a valid tracer, valid tracers include: [gcp]
kvm2 Driver Times for Minikube (PR 9723): 60.1s 55.5s 59.9s Averages Time Per Log
docker Driver Times for Minikube (PR 9723): 28.0s 29.4s 28.6s Averages Time Per Log
|
kvm2 Driver Times for Minikube (PR 9723): 55.6s 56.5s 53.8s Averages Time Per Log
docker Driver Times for Minikube (PR 9723): 27.8s 28.1s 29.5s Averages Time Per Log
|
/ok-to-test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: medyagh, priyawadhwa 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 |
To try this PR, run:
and you should be able to see output in the Cloud Trace UI
Adds OpenTelemetry tracing, with the GCP exporter, to minikube. Refer to MEP: #9587