Skip to content

API Reference parrot.observability.recorders.factory

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.observability.recorders.factory

View source

build_recorders_from_config — map an ObservabilityConfig to recorder backends.

Used by the auto-boot (ensure_observability_bootstrapped) to instantiate the pluggable recorders for the selected usage_backend without the caller knowing about concrete backend classes.

Alias AbstractLogger

Re-exported from parrot.observability.recorders.base.AbstractLogger.

Alias LoggingUsageRecorder

Re-exported from parrot.observability.recorders.logging_recorder.LoggingUsageRecorder.

Alias ObservabilityConfig

Re-exported from parrot.observability.config.ObservabilityConfig.

Function build_recorders_from_config

Return the recorder backends for config.usage_backend.

Only the lightweight (non-OTel) backends are built here: "logging", "prometheus", and "spec_usage". The "otel" and "none" backends are handled by the bootstrap (delegate to setup_telemetry / no-op respectively) and yield no recorders.

build_recorders_from_config(config: 'ObservabilityConfig') -> 'list[AbstractLogger]'

Parameter Type Default Description
config 'ObservabilityConfig' The observability configuration.

Returns: 'list[AbstractLogger]' — A list of AbstractLogger instances (possibly empty).

Attribute logger

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally