Skip to content

API Reference parrot.observability.fanout

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

parrot.observability.fanout

View source

FEAT-710 — fan-out of the four usage lifecycle events to a durable EventBus.

Native forward_to_bus on top of navigator-eventbus FEAT-711. ai-parrot only publishes; the consumer (NVP-505) lives outside this package.

Alias AfterClientCallEvent

Re-exported from parrot.core.events.lifecycle.events.AfterClientCallEvent.

Alias AfterInvokeEvent

Re-exported from parrot.core.events.lifecycle.events.AfterInvokeEvent.

Alias ClientCallFailedEvent

Re-exported from parrot.core.events.lifecycle.events.ClientCallFailedEvent.

Attribute FORWARDED_EVENTS

Type: tuple[type, ...]

Attribute FORWARD_DENYLIST

Type: frozenset[str]

Alias InvokeFailedEvent

Re-exported from parrot.core.events.lifecycle.events.InvokeFailedEvent.

Alias ensure_shared_cost_calculator

Re-exported from parrot.observability.cost.ensure_shared_cost_calculator.

Function get_event_fanout_bus

Return the process fan-out bus when fan-out is enabled, else None.

get_event_fanout_bus() -> Any

Returns: Any

Alias get_global_registry

Re-exported from parrot.core.events.lifecycle.get_global_registry.

Attribute logger

Function redact_usage_event

Return a safe bus payload for usage events, or None for other events.

redact_usage_event(event: Any) -> Optional[dict[str, Any]]

Parameter Type Default Description
event Any

Returns: Optional[dict[str, Any]]

Function setup_event_fanout

Attach a dedicated Streams/publish-only bus and subscribe usage events.

setup_event_fanout(bus: Any = None) -> None

Parameter Type Default Description
bus Any None

Function shutdown_event_fanout

Unsubscribe, detach the bus, and close it while preserving its outbox.

shutdown_event_fanout() -> None

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