Skip to content

Conversation

@ericksoen
Copy link
Contributor

The current behavior when using the provided example returns the following error message: Error: unknown flag: --system

Update the example docs to use the correct parameter name (see documentation for span parameters):

func addSpanParams(cmd *cobra.Command) {
	// --name / -s
	cmd.Flags().StringVarP(&config.SpanName, "name", "s", defaults.SpanName, "set the name of the span")
	// --service / -n
	cmd.Flags().StringVarP(&config.ServiceName, "service", "n", defaults.ServiceName, "set the name of the application sent on the traces")
...
}

Copy link
Contributor

@tobert tobert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tobert tobert merged commit 86c6b24 into equinix-labs:main Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants