span.record_exception when LLM calls fail #3066
dinmukhamedm
started this conversation in
General
Replies: 1 comment 3 replies
-
Yes definitely - I think it's a common practice. We can also set the error message as well in an attribute |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Should we record exceptions on spans when an error occurs inside an LLM (or any other instrumented function) call?
This should be as simple as:
Reference: https://opentelemetry.io/docs/specs/otel/trace/exceptions/
We already do that in a few places:
Beta Was this translation helpful? Give feedback.
All reactions