Skip to main content

Module convenience

Module convenience 

Source
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
ConvenienceManager
Convenience manager that integrates domain-aware processing into the processor chain
DomainContextProcessor
Processor that automatically enhances standard log calls with domain-specific structure
LLMContext
Context for LLM operations
RequestContext
Context for request operations
TemplateContext
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