Allow option to only trace if there is an exception #833
NathanHam16
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
That would add a lot of complexity if we implemented this client-side. Right now, you can edit TTLs of traces in langsmith and then make it so errored runs have longer TTLs. This server-side handling is more reliable. Handling client side would mean we'd have to keep an entire long trace in memory until it completes and then only send if there's an error. When the application is distributed, this because pretty fraught (the called process wouldn't be responding likely. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Going to move to discussions since this isn't a bug. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature request
Allow conditional tracing, only if an exception has been thrown.
Motivation
For some LLM applications, there may be hundreds of API calls being made per single use case, due to the rising popularity of agentic workflows that focus on small, specific tasks. It would be great to trace only errors being thrown, and this would work great for other functions too.
Beta Was this translation helpful? Give feedback.
All reactions