Index
provide.foundation.logger.processors
¶
TODO: Add module docstring.
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 |