-
Notifications
You must be signed in to change notification settings - Fork 55
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
Setting existing span's status code/description #197
Comments
I like the idea of adding the |
I got it working in #201, I'm gonna sleep on it so I can review the PR with fresher eyes and likely merge tomorrow. |
…ans #197 (#201) * break status code params out to their own helper they'll also be used by span_end.go * add support for StatusCode and StatusDescription * add support for status code and desc on span background end Adds support to set --status-code and --status-description when calling otel-cli span end, along with tests.
Merged :) I'll try to do a release next week, week after at the latest. I have a couple more things I want to clean up post-#175 before releasing. |
release v0.3.0, please reopen if there's still an issue |
A fairly common use case in our non-
otel-cli
-instrumented code is:Error
I don't see a way to modify an existing background span via the cli commands, maybe
span
could have a new subcommand,modify
,existing
, orstatus
? Or, although not as flexible,span end
could takespan
's optional--status-code
/--status-description
flags, since a caller could reasonably store the outcome of their background span and set it at the end.Alternatively, this might already a feature and I'm not finding the way to do so 😅 If so, would appreciate an example.
The text was updated successfully, but these errors were encountered: