Expand description
Context-aware processors for domain-specific logging operations
These processors automatically detect and enhance standard log::info!, log::debug! calls based on context and structured fields, maintaining standard Rust logging interface.
Structs§
- A2AContext
- Context for A2A operations
- Convenience
Manager - Convenience manager that integrates domain-aware processing into the processor chain
- Domain
Context Processor - Processor that automatically enhances standard log calls with domain-specific structure
- LLMContext
- Context for LLM operations
- Request
Context - Context for request operations
- Template
Context - Context for template operations
Functions§
- clear_
a2a_ context - Clear A2A context only
- clear_
all_ contexts - Clear all contexts
- clear_
llm_ context - Clear LLM context only
- clear_
metrics_ port - Clear the active MetricsPort implementation
- clear_
request_ context - Clear request context only
- clear_
template_ context - Clear template context only
- emit_
a2a_ message_ latency - Emit an A2A message latency metric with context
- emit_
counter - Generic counter metric with automatic context detection
- emit_
histogram - Generic histogram metric with automatic context detection
- emit_
llm_ request_ duration - Emit an LLM request duration metric with context
- emit_
llm_ tokens_ used - Emit an LLM token usage metric with context
- emit_
request_ duration - Emit request processing duration metric with context
- emit_
template_ render_ duration - Emit a template render duration metric with context
- log_
a2a_ message - Convenience function to log A2A messages with structured format
- log_
llm_ request - Convenience function to log LLM requests with structured format
- log_
template_ render - Convenience function to log template rendering with structured format
- set_
a2a_ context - Set A2A context
- set_
llm_ context - Set LLM context
- set_
metrics_ port - Set the active MetricsPort implementation
- set_
request_ context - Set request context
- set_
template_ context - Set template context