Would there be a way to ignore certain error classes within traces when auto-instrumenting langchain? Odd request, I know, but unfortunately langgraph uses exception handling for control flow, which means that every successful trace during a multi-graph execution will show an error response within phoenix. Here鈥檚 a link showing this behavior when it was introduced. https://github.com/langchain-ai/langgraph/pull/2520/files#diff-60253f1ec99c8d9b4e1b4fec9573d904c7065d6b0942e1143787b73d68d80d4cR71-R73
To ignore certain error classes within traces when auto-instrumenting LangChain, you can use a custom error handling approach. According to the Phoenix documentation, you can define a custom FilterProcessor to filter out spans based on specific criteria, such as error types. This allows you to selectively suppress instrumentation on specific calls or errors.Would you like more details on how to implement this?Sources:
- Phoenix documentation
馃挕聽Hint: Mention RunLLM in the thread for followups.
That might be exactly what I need
thank the bot! I'm so glad that worked
