Observability

Monitor activity and performance.

Use project queries for individual applications. Use account billing to inspect conversation activity across the account, and Runs for account run analytics.

Logs · Traces · Metrics · Alerts · Error types

Logs

Query project logs to investigate activity and failures. Each endpoint reference lists the supported filters.

EndpointMethodsDescription
/projects/{project_reference}/logsGETList log entries

Traces

Find project traces and inspect individual traces by ID. Trace spans connect related execution activity. For a run’s event history, use the run endpoints.

EndpointMethodsDescription
/projects/{project_reference}/traces/{trace_id}/spansGETList trace spans
/projects/{project_reference}/traces/{trace_id}GETGet trace
/projects/{project_reference}/tracesGETQuery traces

Metrics

Query project metrics to inspect measurements over time.

EndpointMethodsDescription
/projects/{project_reference}/metrics/queryPOSTQuery metrics

Alerts

List the alerts that fired for a project, firing and recently resolved, with links to the logs and traces they cover.

EndpointMethodsDescription
/projects/{project_reference}/alertsGETList alerts

Error types

Read the meaning of a published error type. Use logs or traces to investigate a specific failed request.

EndpointMethodsDescription
/errorsGETList error types
/errors/{error_type_slug}GETGet error type

Back to REST API reference