Expand description
Advanced context management for structured_logging
This module provides domain-specific context management capabilities that build on observability_core’s basic trace context foundation. It includes:
- RAII scoped context management
- Domain-specific context managers (LLM, A2A, Request)
- Dependency injection registry
- Advanced correlation features
Structs§
- A2aContext
Guard - RAII guard for A2A context
- AllContexts
Guard - Combined RAII guard for all contexts
- LlmContext
Guard - RAII guard for LLM context
- Request
Context Guard - RAII guard for request context
- Scoped
Context Builder - Scoped context builder for complex nested operations
- Structured
A2aContext Manager - Adapter implementing A2A context management for structured_logging
- Structured
Context Registry - Registry coordinating all structured_logging context managers
- Structured
LlmContext Manager - Adapter implementing LLM context management for structured_logging
- Structured
Request Context Manager - Adapter implementing request context management for structured_logging
Traits§
- A2aContext
Manager - Port (trait) for A2A context management
- Context
Manager Registry - Combined context manager that coordinates all context types
- LlmContext
Manager - Port (trait) for LLM context management
- Request
Context Manager - Port (trait) for request context management
Functions§
- init_
context_ integration - Initialize structured_logging context management integration
- register_
context_ managers - Register a context manager registry (dependency injection)
- set_
a2a_ context_ scoped - Set A2A context with RAII guard
- set_
all_ contexts_ scoped - Set all contexts with combined RAII guard
- set_
llm_ context_ scoped - Set LLM context with RAII guard
- set_
request_ context_ scoped - Set request context with RAII guard
- with_
a2a_ context - Execute a closure with A2A context, automatically clearing when done
- with_
all_ contexts - Execute a closure with all contexts, automatically clearing when done
- with_
llm_ context - Execute a closure with LLM context, automatically clearing when done
- with_
request_ context - Execute a closure with request context, automatically clearing when done