We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
otel-cli exec
$ otel-cli exec -- false
The above example does not report a span. If I run with --verbose, then I see this:
--verbose
$ otel-cli exec --verbose -- false 2023/08/30 18:36:07 command failed: exit status 1
I think the issue is here:
if err := child.Run(); err != nil { config.SoftFail("command failed: %s", err) } span.EndTimeUnixNano = uint64(time.Now().UnixNano()) ctx, err := otlpclient.SendSpan(ctx, client, config, span) if err != nil { config.SoftFail("unable to send span: %s", err) }
Calling config.SoftFail is going to exit immediately. What is probably intended instead is to record the span with an error code.
config.SoftFail
The text was updated successfully, but these errors were encountered:
Yep, the first config.SoftFail is the problem. My bad. If we get the test in your PR working, it'll make sure this doesn't revert.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The above example does not report a span. If I run with
--verbose
, then I see this:I think the issue is here:
Calling
config.SoftFail
is going to exit immediately. What is probably intended instead is to record the span with an error code.The text was updated successfully, but these errors were encountered: