Topics
Topics runs on your existing Langfuse web and worker services, using Postgres, ClickHouse, Redis, and blob storage. Clustering runs inside the worker and the official worker image includes the required native module.
This page covers infrastructure configuration. For project setup and usage, see the Topics guide.
Configure the dispatch worker
Topics is enabled by default. To process traces, set QUEUE_CONSUMER_EVENTS_DISPATCH_QUEUE_IS_ENABLED=true on one worker service and redeploy it. If you run a single worker service, use that service.
Event dispatch defaults to true. If you set LANGFUSE_EVENTS_DISPATCH_ENABLED=false on the dispatch worker or any OpenTelemetry ingestion worker, remove the override and redeploy the affected services. In each project, map filters and sampling determine which recorded traces Topics analyzes.
Configure model access
Create project or inherited organization LLM connections, then follow the Topics setup steps to select your models.
Both web and worker need access to the configured provider endpoints. Web validates the model configuration, and the worker processes traces and names topics. Use the deployment's existing ENCRYPTION_KEY on both services so they can read the stored credentials.
If you use a private model endpoint or gateway, allow outbound requests to that endpoint from both services.
Embedding compatibility
Choose a dimension count supported by your embedding model. Langfuse accepts 64–2,048 dimensions, with 1,024 as the default. The model must return the configured number of dimensions.
Configure storage retention
Live maps stage temporary transcripts under events-dispatch/trace-transcript/ in the event-upload bucket. If your deployment sets LANGFUSE_S3_EVENT_UPLOAD_PREFIX, prepend its existing value to that path.
Configure a blob storage lifecycle policy to expire objects at that path after three days, or set LANGFUSE_EVENTS_DISPATCH_TRANSCRIPT_CLEANER_ENABLED=true on the worker. The cleaner is disabled by default and needs permission to list and delete those objects.
For versioned storage or soft delete, configure lifecycle expiry for retained versions too.
These temporary objects contain trace content. Trace and project deletion do not remove them; cleanup depends on the configured cleaner or lifecycle policy.
Start processing
To verify live processing, create a live map filtered to a test workflow with 100% sampling. Send a matching trace with a recorded model conversation and check that its summary appears after the readiness delay and processing.
Tune worker load
The worker runs up to 20 per-trace jobs concurrently per queue shard by default. Set LANGFUSE_TOPICS_TRACE_QUEUE_PROCESSING_CONCURRENCY only if you need to tune this, for example to stay within provider rate limits.
Clustering consumes worker CPU and memory too. Allow headroom alongside ingestion and evaluation jobs; see sizing and scaling for worker deployment options.
If you experience any issues when self-hosting Langfuse, please:
- Check out Troubleshooting & FAQ page.
- Use Ask AI to get instant answers to your questions.
- Ask the maintainers on GitHub Discussions.
- Create a bug report or feature request on GitHub.
Enterprise-grade support is available when self-hosting Langfuse. Learn more on our pricing page.
Last updated on