Skip to content

API Reference parrot.squawk.telemetry

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

parrot.squawk.telemetry

View source

Served-side telemetry: one CapabilityCallEvent + one recorder call per capability call (FEAT-746 M12, D13).

Alias AbstractLogger

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

Alias CallCost

Re-exported from parrot.interagent.CallCost.

Alias CapabilityCallEvent

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

Alias CapabilityCallRecord

Re-exported from parrot.observability.recorders.CapabilityCallRecord.

Alias EventRegistry

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

Class ServedTelemetry

Emit one CapabilityCallEvent and one recorder call per served capability call.

Parameter Type Default Description
registry EventRegistry | None None Event registry, defaulting to the global one at emit time.
recorder AbstractLogger | None None Optional observability recorder.

Method ServedTelemetry.emit

Publish the event and record it; failures are logged, never raised into the call path.

emit(record: CapabilityCallRecord) -> None

Parameter Type Default Description
record CapabilityCallRecord Record built by :func:record_from_call.

Alias SquawkCapability

Re-exported from parrot.interagent.SquawkCapability.

Alias TraceContext

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

Alias get_global_registry

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

Function record_from_call

Build a CapabilityCallRecord; tokens only for llm_backed capabilities, never provider/model fields.

record_from_call(*, side: Literal['served', 'received'], agent: str, peer: str, cap: SquawkCapability, status: str, cost: CallCost, trace_id: str, correlation_id: str | None = None, policy_applied: tuple[str, ...] = ()) -> CapabilityCallRecord

Parameter Type Default Description
side Literal['served', 'received'] Whether this agent served or received the call.
agent str This agent's id.
peer str The remote agent's id.
cap SquawkCapability Capability called.
status str Call status code.
cost CallCost Measured call cost.
trace_id str Distributed trace id.
correlation_id str | None None Request/response correlation id.
policy_applied tuple[str, ...] () Policy rules applied to the call.

Returns: CapabilityCallRecord — The telemetry record.

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