Decorators
decorators.Trace
Trace utilities for decorators for automatic logging and instrumentation of functions and methods.
View module source on GitHub
Get the current logger from the context variable.
Get the current trace from the context variable.
Decorator for tracking traces.
This decorator wraps functions to automatically create and manage Trace
objects for tracking trace operations, including inputs, outputs, and metadata.
The decorated function must be called within a @trace or @span decorated context.