Expand description
Domain layer for observability core - Pure business logic
This module contains ONLY pure business logic with no external dependencies. No WASM, HTTP, or framework-specific code should be here.
Structs§
- Context
Enricher - Processor that enriches with context
- Enhanced
Context Enricher - Enhanced processor that combines context enrichment with kv extraction
- Level
Filter - Filter processor that filters out logs below certain level
- LogEntry
- Core log entry - pure data structure
- LogKv
Extractor - Processor that extracts structured fields from log::kv
- LogSource
- Source of the log entry
- Metrics
Entry - Basic metric entry for correlation with logs
- Metrics
Source - Source of the metric
- Processor
Chain - Processor chain pattern (inspired by structlog)
- Structured
Fields Processor - Processor that structures fields
- Timestamp
Processor - Processor that adds timestamps
- Trace
Correlation - Serializable trace identifiers for log/metric correlation.
Enums§
- Basic
Metric Type - Simple metric types supported by core
Traits§
- LogProcessor
- Core processor interface - transforms log entries
Functions§
- build_
default_ processor_ chain - Build a default processor chain with common processors
- build_
enhanced_ processor_ chain - Build an enhanced processor chain with additional features
- create_
counter_ metric - Convenience function to create a counter metric
- create_
gauge_ metric - Convenience function to create a gauge metric
- create_
histogram_ metric - Convenience function to create a histogram metric
- create_
log_ entry - Create a log entry from basic components
Type Aliases§
- Trace
Context - Backwards-compatible alias.