Skip to main content

Module domain

Module domain 

Source
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§

ContextEnricher
Processor that enriches with context
EnhancedContextEnricher
Enhanced processor that combines context enrichment with kv extraction
LevelFilter
Filter processor that filters out logs below certain level
LogEntry
Core log entry - pure data structure
LogKvExtractor
Processor that extracts structured fields from log::kv
LogSource
Source of the log entry
MetricsEntry
Basic metric entry for correlation with logs
MetricsSource
Source of the metric
ProcessorChain
Processor chain pattern (inspired by structlog)
StructuredFieldsProcessor
Processor that structures fields
TimestampProcessor
Processor that adds timestamps
TraceCorrelation
Serializable trace identifiers for log/metric correlation.

Enums§

BasicMetricType
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§

TraceContext
Backwards-compatible alias.