-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support functools.partial functions in AsyncioInstrumentor.trace_to_t…
…hread Change `trace_to_thread` method to retrieve the function name from the `func` attribute of the `functools.partial` instance. > partial objects are like function objects in that they are callable, weak > referenceable, and can have attributes. There are some important differences. > For instance, the __name__ and function.__doc__ attributes are not created > automatically. Also, partial objects defined in classes behave like static > methods and do not transform into bound methods during instance attribute > look-up. > > Reference: https://docs.python.org/3.12/library/functools.html#partial-objects
- Loading branch information
Showing
2 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters