Skip to main content

Crate sc_observability

Crate sc_observability 

Source
Expand description

Shared observability primitives for ATM ecosystem tools.

AH.1 scope:

  • Logger + emit() with JSONL rotation
  • LogConfig with environment-driven defaults
  • spool write/merge semantics
  • socket error-code constants for the log-event contract

Structs§

FileOtelExporter
LogConfig
Logger
OtelConfig
OtelRecord
SpanRefV1
A tracing span reference captured at the time a LogEventV1 is emitted.

Enums§

LogLevel
LoggerError
OtelError

Constants§

DEFAULT_MAX_BYTES
DEFAULT_MAX_EVENT_BYTES
DEFAULT_MAX_FILES
DEFAULT_OTEL_INITIAL_BACKOFF_MS
DEFAULT_OTEL_MAX_BACKOFF_MS
DEFAULT_OTEL_MAX_RETRIES
DEFAULT_QUEUE_CAPACITY
DEFAULT_RETENTION_DAYS
SOCKET_ERROR_INTERNAL_ERROR
SOCKET_ERROR_INVALID_PAYLOAD
SOCKET_ERROR_VERSION_MISMATCH

Traits§

OtelExporter

Functions§

export_otel_best_effort
Export to OTel without allowing exporter failures to fail the caller.
export_otel_best_effort_from_path
Export a single event to OTel using default pipeline settings (fail-open).
redact_event
Apply canonical redaction rules to a logging event.
spool_file_name