observability
Connect your Pydantic Logfire project to let agents query traces, explore metrics, and search structured logs, and to have its alerts reach Polylane the moment they fire. Agents can analyze your OpenTelemetry data to troubleshoot issues and understand application behavior.

連接

從終端機連接Logfire。傳入--help可查看Logfire接受的旗標。

Terminal
polylane integration connect --type logfire

中斷連接

中斷連接會停止所有同步與檢查,並刪除Polylane持有的憑證。 Polylane在Logfire中建立的一切也會一併移除;不會留下任何東西。

Terminal
polylane integration disconnect <id>

工具

5

代理可以在對話串中執行的操作。

logfireListServices
List the services that sent spans or logs to Logfire in a time window
logfireSearchSpans
Search Logfire spans and logs by service, name, route, level, exception, or HTTP status
logfireGetTrace
Read one Logfire trace as a parent/child span tree with durations
logfireRouteSummary
Per-route request counts, error rates, and p50/p95 latency from Logfire
logfireQuery
Run a read-only SQL query against a Logfire project's records and metrics tables