-
Notifications
You must be signed in to change notification settings - Fork 27
Make a span as an error in OTEL #85
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
Comments
OpenTelemetry defines error to be an event with proper attributes. Therefore, in fastrace, it's very straightforward to record an error like this: LocalSpan::add_event(Event::new("exception")
.with_property(|| ("exception.message", "Division by zero"))
.with_property(|| ("exception.type", "OSError"))
.with_property(|| ("exception.stacktrace", std::backtrace::Backtrace::force_capture().to_string()))
); |
Make senses. @andylokandy I can reopen an issue but what about a |
Currently, span kind is same across all spans in an application. It could be configured via fastrace-opentelemetry. |
Ok, but make it hards if I have span that needs to be |
yes... maybe fastrace-opentelemetry should be able to recognise it from specific attribute |
Could just with the |
LGTM |
Hello,
I was wondering what would be the recommended approach when using
fastrace
+opentelemetry
to mark a span as an error.In their documentation, you will use the
span.setStatus(Error)
and they have a function that doesspan.record(err)
.What fastrace approach would be in that case?
The text was updated successfully, but these errors were encountered: