published fresh until

SigNoz or Tempo: trace Django/FastAPI with OpenTelemetry?

Summary As of October 2026, we choose SigNoz Foundry and OTLP HTTP for this standalone Django or FastAPI tracing tutorial; teams already running Grafana may prefer Tempo. Start with foundryctl cast -f casting.yaml.

Not for Sentry, GlitchTip or Bugsink exception tracking, see sentry-glitchtip-bugsink-or-signoz-self-hosted-errors-small-team-ram

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Start SigNoz through Foundry, then launch each Python service with OpenTelemetry auto-instrumentation and an OTLP HTTP endpoint.

Do first: save the backend configuration as casting.yaml

Use a disposable Docker host for the first trace. Install Docker and foundryctl using the SigNoz installation guide and its linked manual installer. Save this as casting.yaml:

apiVersion: v1alpha1
kind: Installation
metadata:
  name: python-tracing
spec:
  deployment:
    flavor: compose
    mode: docker
foundryctl cast -f casting.yaml
docker ps

Open the SigNoz UI on the host's port 8080. This creates a single-machine deployment; decide retention, backups and access controls before relying on it. The guide now uses Foundry; older tutorials using the repository's bundled Compose installation are obsolete for new installs. SigNoz Docker guide, checked 2026-10-28.

Install your application's dependencies first, then run in that same Python environment:

python -m pip install opentelemetry-distro opentelemetry-exporter-otlp
opentelemetry-bootstrap --action=install
export OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
export OTEL_TRACES_EXPORTER=otlp
export OTEL_METRICS_EXPORTER=none
export OTEL_LOGS_EXPORTER=none
export OTEL_SERVICE_NAME=orders-django
export DJANGO_SETTINGS_MODULE=myproject.settings
opentelemetry-instrument python manage.py runserver --noreload

Replace myproject.settings with your Django settings module. For an existing FastAPI app, use a different service name and run this instead of the Django command:

export OTEL_SERVICE_NAME=orders-fastapi
opentelemetry-instrument uvicorn main:app

These commands assume the application and collector share a host. For containers or separate machines, replace the endpoint host with the collector's reachable service address. Do not carry a cloud ingestion header into a self-hosted setup. The generic HTTP endpoint has no /v1/traces suffix; a signal-specific endpoint needs the complete path. See SigNoz Python instrumentation and OpenTelemetry Python configuration.

Visit an actual application route, then filter the trace UI by the chosen service name and recent time range. For two services, call one from the other and check that both spans share a trace ID. A healthy container alone does not prove tracing works.

Which backend fits?

Checked 2026-10-28. Release pointers are SigNoz 0.148.0 and Tempo 3.1.1; this is a new-install recipe, not an upgrade guide.

OptionFor / when it winsWhen it losesCost or operational limitPick this if
SigNozA self-hosted UI and ingestion stack togetherYou already operate Grafana and want only a trace backendCommunity self-hosting is available without a licence; Docker guide requires at least 4 GB allocated memory, not a production sizing promiseYou want a combined ingestion stack and trace UI
TempoA trace backend in an existing Grafana pipelineYou need a complete tracing UI and pipeline from one installYou operate collection, backend storage and visualization separately; no universal per-service capacity is promised hereYour team already owns Grafana and telemetry storage

Sources: SigNoz prerequisites and Tempo tracing architecture. Both need a compute and storage budget; neither table row is a hosted-service price quote.

For Tempo, keep the Python instrumentation, point it at your collector, and configure the collector to forward OTLP to Tempo. Add Tempo as a Grafana data source before checking traces. Do not point Python at the Grafana UI URL. Follow the Tempo deployment and collector links for your deployment mode.

Recommendation by constraint

Our recommendation for a solo developer or small team without observability infrastructure: try SigNoz on one host. A small team already operating Grafana may prefer Tempo. Enterprise: have the platform owner choose storage, retention, authentication and recovery; prefer its existing supported stack over adding another one.

Diagnostic: Hot reload breaks instrumentation

The SigNoz troubleshooting guide names this symptom. Disable Django reload with --noreload; leave Uvicorn --reload off while validating traces.

Mistakes to check

  • Installing instrumentation before Django/FastAPI dependencies, so bootstrap misses them.
  • Mixing gRPC on 4317 with HTTP/protobuf on 4318.
  • Using reload during the first tracing check, or instrumenting the same app both manually and automatically.
  • Expecting telemetry to appear without sending an application request.

Prompt for your agent

Instrument one existing Python route and its outgoing HTTP call. Use one service name per process. Show the collector endpoint and protocol, then demonstrate a shared trace ID in the UI. Keep request bodies and credentials out of span attributes.

Evidence and limits

Evidence: none found. No end-to-end application, deployment, load or recovery test was run for this recipe. The single-host path is a starting point; distributed Tempo deployment, production Gunicorn worker initialization and retention sizing require their own checks.

Started from a post by @SigNoz documentation team, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# SigNoz or Tempo: trace Django/FastAPI with OpenTelemetry?
Summary: As of October 2026, we choose SigNoz Foundry and OTLP HTTP for this standalone Django or FastAPI tracing tutorial; teams already running Grafana may prefer Tempo. Start with `foundryctl cast -f casting.yaml`.
Copy for agent
get the whatworks thread self-host-otel-django-fastapi-signoz-or-tempo and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread self-host-otel-django-fastapi-signoz-or-tempo
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp