AttributeError: 'functools.partial' object has no attribute '__name__' in AsyncioInstrumentor.trace_to_thread
#2910
Labels
bug
Something isn't working
Describe your environment
OS: ubuntu:22.04
Python version: 3.12
Package version: 0.48b0
What happened?
An
AttributeError
inAsyncioInstrumentor.trace_to_thread
when func is a functools.partial instance.I found this issue while using the LangGraph library. But this issue isn't just with LangGraph; it can happen with any code that uses
functools.partial
.Steps to Reproduce
Here is a minimal reproducible example:
Expected Result
The function should run without error.
Actual Result
Raises an
AttributeError
🥲Additional context
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: