Index
π€ AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
provide.foundation.logger.processors
¶
Functions¶
inject_trace_context
¶
inject_trace_context(
logger: Any,
method_name: str,
event_dict: dict[str, Any],
) -> dict[str, Any]
Processor to inject trace context into log records.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
logger
|
Any
|
Logger instance |
required |
method_name
|
str
|
Method name being called |
required |
event_dict
|
dict[str, Any]
|
Current event dictionary |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Event dictionary with trace context added |