Skip to content

API Reference ai_parrot_openlit_bridge.probe

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

ai_parrot_openlit_bridge.probe

View source

OTLP endpoint validation probe.

FEAT-462 — Unified Telemetry Bus. Replaces the openlit SDK's monkey- patching init with a best-effort, non-blocking OTLP endpoint reachability check — used at boot time (optionally) to surface a friendly diagnostic when the configured OpenLIT/OTLP collector endpoint is unreachable.

Class EndpointStatus

Result of an OTLP endpoint probe.

Parameter Type Default Description
reachable bool
status_code int | None None
collector_info str | None None
error str | None None

Fields:

Field Type Default Description
reachable bool Whether the endpoint responded to the probe request.
status_code int | None None HTTP status code returned by the endpoint, when reachable.
collector_info str | None None Value of the response's Server header, when present — a hint at which collector is listening (e.g. "otel-collector").
error str | None None String representation of the exception raised while probing, when unreachable.

Attribute logger

Function validate_endpoint

Probe an OTLP endpoint for reachability.

Sends a lightweight, empty-body POST to the standard OTLP HTTP traces path (/v1/traces) and reports whether the endpoint responded. This is a best-effort diagnostic — it never raises; any error (connection refused, timeout, DNS failure, …) is captured in the returned EndpointStatus.error instead.

validate_endpoint(url: str, *, timeout: float = 5.0, headers: dict[str, str] | None = None) -> EndpointStatus

Parameter Type Default Description
url str OTLP base URL (e.g. "http://localhost:4318").
timeout float 5.0 Request timeout in seconds. Default 5.0.
headers dict[str, str] | None None Optional extra headers (e.g. auth) forwarded to the probe request.

Returns: EndpointStatus — An EndpointStatus describing the probe outcome.

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