Observability

In this sectionLogs, metrics, traces and events for a 10xGraph server: logging, Prometheus and Grafana, OTLP, Phoenix, Logfire and LangSmith, and publishers.

  • 5 pages
  • About 44 min to read all

Observability covers what a running 10xGraph server and its graphs emit: logs and server telemetry, metrics for Prometheus and Grafana, traces sent to OTLP, Phoenix, Logfire or LangSmith, and events forwarded to message brokers.

  • Events and observability: How events, traces and metrics fit together.
  • Logs and server telemetry: Set up structured logging, metrics collection, error tracking with Sentry, and inspect runs via the observability API.
  • Prometheus and Grafana: Export request, task and LLM metrics from the 10xGraph API server and worker to Prometheus or Grafana, by OTLP push or by scrape.
  • AI tracing: Send graph, node, LLM and tool spans to an OTLP endpoint, Arize Phoenix, Logfire or LangSmith, from Python or the server.
  • Publishers (Kafka, Redis, RabbitMQ): Forward structured events to observability systems using Redis, Kafka, RabbitMQ and more.

All pages in Observability

  1. Events and observabilityHow 10xGraph emits structured EventModel events from a run, publishes them to Kafka, Redis, RabbitMQ or OTEL via publishers, and exposes metrics and tracing.14 min

Logs

  1. Logs and server telemetrySet up structured JSON logs, log levels, metrics, Sentry error tracking and run inspection on the 10xGraph API server, and see what each setting writes.10 min

Metrics

  1. Metrics with Prometheus and GrafanaExport request, task and LLM metrics from the 10xGraph API server and worker to Prometheus and Grafana by OTLP push or scrape, using the metrics config block.7 min

Tracing

  1. Send AI tracesSend 10xGraph graph, node, LLM and tool spans to an OTLP endpoint, Arize Phoenix, Pydantic Logfire or LangSmith, from Python or the API server.5 min

Events

  1. Emit events from your graphForward run, node and tool events to Kafka, Redis, RabbitMQ or the console with publishers, and write a custom publisher by subclassing BasePublisher.8 min