Decorators
decorators.Trace
Trace utilities for decorators for automatic logging and instrumentation of functions and methods.
current_logger
Get the current logger from the context variable.
current_trace
Get the current trace from the context variable.
trace
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.