Why traces go missing after ingestion in self-hosted Langfuse
The SDK returned success, yet the trace never appears in the Langfuse UI. That gap is the symptom this page addresses, and the first thing to understand is that ingestion is asynchronous. An SDK call hands the event to the Langfuse Web container, which accepts it and places it on a queue for Langfuse Worker to process. A successful response from the SDK therefore confirms only that the web layer accepted the event, not that the event was written to ClickHouse where the UI reads it. In a self-hosted deployment, that path crosses Langfuse Web, Langfuse Worker, Redis or Valkey for queueing, S3-compatible blob storage for the raw event payload, and ClickHouse for the queryable record, with PostgreSQL holding project and configuration data. A missing trace means the event stopped at one of these stages, and the job of this page is to find which one.
Teams usually need this work in three situations: shortly after a new deployment, after a migration of data stores or Langfuse versions, or when traffic rises and the worker falls behind. None of these is a one-off task. Each one changes the conditions that let an event travel from accepted to visible, so the checks below belong in the routine operating runbook rather than in an incident folder. Before you start, confirm which SDK and Langfuse versions you run, which project and environment the test trace was sent to, and whether your team can read the Redis queue, the blob bucket and the ClickHouse tables. Those answers decide which stage you can inspect directly and which you must ask a platform owner to check on your behalf.
Where an event travels from SDK to UI
The diagram follows one trace from the SDK or OTLP sender to the UI. Langfuse Web accepts the request and writes the raw event to blob storage, then queues a job in Redis or Valkey. Langfuse Worker reads the event back from blob storage, processes it and writes rows to ClickHouse. The UI then reads traces from ClickHouse and metadata from PostgreSQL. The lettered checkpoints mark where to confirm each hand-off, starting with the sender's response. A missing trace is usually found at the first checkpoint where the event does not appear.
Lettered checkpoints mark where to confirm each hand-off.
How to narrow the failure step by step
This sequence follows one event from the SDK to the UI so you can find the component where a trace stops, instead of guessing across the whole stack.
Confirm the SDK sent the request
Start on the application side. Enable debug logging in the Langfuse SDK or inspect the OpenTelemetry exporter output, then note the trace ID, the timestamp and the host the SDK posted to. Check the HTTP response code and body returned to the SDK. A failure here usually means a wrong host or public key, a network path from the application to Langfuse that is blocked, or an authentication rejection. If the SDK shows a successful response with a trace ID, the event left the application and the investigation moves to the platform.
Confirm the web container accepted the event
Check the Langfuse Web container logs for the same timeframe and trace ID. Look for ingestion requests that returned errors, timeouts or upstream failures, and confirm the request reached the Langfuse Web service through your load balancer or ingress. Errors such as gateway timeouts point toward proxy or connection settings rather than data processing. If the web container logged no request at all, the problem sits between the application and the service, and you should check DNS, routing, TLS termination and any proxy in front of Langfuse Web. Record the result before moving on.
Check Redis and blob storage availability
Confirm that the services Langfuse relies on to hand off events are reachable from both the web and worker containers. Redis or Valkey queues ingestion work, and S3-compatible blob storage holds the raw event before processing. Test connectivity from inside each container with the configured endpoint and credentials, and review logs for connection refused, authentication or bucket permission errors. Confirm the bucket named in your configuration exists and that the credentials allow writes. A failure here means the event may never have been queued, so the worker has nothing to process.
Confirm the raw event landed in blob storage
List the event objects in the configured bucket for the time window of your test trace. Use the bucket path layout shown in your deployment's configuration and search for the event ID or a time-prefixed object near the request timestamp. If the object exists, the ingestion path worked and the problem is downstream. If it is missing while the web container logged success, review storage write errors, the bucket endpoint and any lifecycle rules that could remove objects. Confirm the result by identifying at least one object that matches your test event.
Confirm the worker processed the event
Review Langfuse Worker logs for the event ID. A healthy path shows the worker picking up the queued job, reading the object from blob storage and writing records. Look for ClickHouse insert errors, PostgreSQL errors, out-of-memory restarts or repeated retries. A worker that is restarting or saturated will leave events queued without writing them. If the worker shows no activity, check that it is running, connected to Redis or Valkey and pointed at the same blob bucket as the web container. Confirm completion by finding a log line for the event that shows a successful write.
Confirm the data exists in ClickHouse
Query ClickHouse directly for the trace ID or event ID using the tables your Langfuse version uses. Confirm the row is present and that its project identifier matches the project you are viewing in the UI. A row in ClickHouse with the wrong project or environment points to a configuration or SDK key mismatch, not a storage fault. If no row exists after a successful worker write, check ClickHouse insert errors and migration state in the logs. Confirm the result by reading the row back with its timestamp.
Confirm the UI query path returns the trace
Last, open the trace in the Langfuse UI using the same project and time range as the test event. Check the browser developer tools for failed API calls to the web service. If the data exists in ClickHouse but the UI does not show it, review the web container logs for query errors and confirm that the browser reaches the same deployment you inspected. Note that newly ingested data can appear after some delay while it is processed, so confirm against the storage steps before concluding the trace is lost. The sequence is complete when the trace appears in the UI or you have a specific failing component to fix.
Which component to inspect for each symptom
When the SDK logs an error or the call fails, the event never reached the ingestion path, so the problem sits between the application and the Langfuse web container. The web container accepts the request, validates it and queues the work, so a failed response usually means the request was rejected or the web service could not reach a dependency. Start at the edge of the platform and work inward.
- Response status and body: Capture the HTTP status code and error text the SDK logs. Authentication failures and malformed payloads return client errors, while server errors point to the web container or its dependencies.
- Web container logs: Read the
langfuse-weblogs at the time of the failed call. Look for stack traces, connection errors to PostgreSQL, Redis or Valkey, and errors when writing to blob storage. - Redis or Valkey reachability: Confirm the web container can connect to the queue store from its own network position. A refused or timed-out connection during enqueue shows up as a failed ingestion call.
- Blob storage write path: Check that the web container can write to the configured S3-compatible bucket, since the raw event is stored there before processing.
- Network path and proxy: Test the request from the application host to the public or internal Langfuse URL, including any load balancer or ingress in front of it.
Check the web logs and dependency connectivity first, because the SDK error alone does not show which hop failed.
When the SDK call succeeds but traces do not show up in the UI, the web container has likely accepted the event and handed it to asynchronous processing. The worker then writes the processed data to ClickHouse, so the delay is normal up to a point. The task is to decide whether the event is still in progress or has stalled.
- Expected processing lag: Compare the time the event was sent with the time you are checking. Ingestion is asynchronous, so a short delay is expected before the trace is visible. Confirm the typical delay in your own environment before you treat a gap as a fault.
- Worker logs: Read the
langfuse-workerlogs for the event's time window. Look for retries, repeated errors on the same event, or long gaps with no processing activity. - Worker health and resources: Check that the worker process is running and has CPU and memory headroom. A worker under resource pressure processes events slowly or restarts.
- Queue backlog: Check whether the queue holds a large number of waiting events. A backlog means the worker is behind, which calls for scaling review rather than a fix to a single event.
- Project and time filters in the UI: Confirm you are looking at the correct project, environment and date range, since a filter mismatch looks identical to missing data.
If the worker is healthy and the queue is draining, wait for the backlog to clear before escalating.
When traces appear for some projects but not others, the platform as a whole is usually running, so a global outage is unlikely. The difference is in the configuration, keys or data that the affected projects use. This pattern narrows the search to the client side and project-level settings.
- Project API keys: Confirm the affected application uses public and secret keys that belong to the project you are viewing. Keys from a different project send traces to that project instead.
- Host and base URL settings: Check that the affected SDK points to the same Langfuse host as the working applications. A stale or internal hostname can route events to the wrong instance.
- Environment tagging: Verify the environment name set in the SDK matches the filter used in the UI, since traces tagged with another environment can look missing.
- Worker logs filtered by project: Search the worker logs for the affected project identifier. Errors tied only to that project often reveal a payload or permission problem.
- Data written to storage: Check whether event objects for the affected project appear in blob storage. If they do, the problem is in processing; if not, the request never reached the storage path.
Compare one working project and one failing project side by side, because the first difference usually identifies the cause.
When traces show up in the UI and later disappear, the data was written at least once, so the failure is in the read path, a later processing step, or a retention or deletion setting. Work from the store that serves the UI back toward storage to find where the record was lost.
- ClickHouse data for the trace: Query ClickHouse for the trace identifier to confirm whether the rows still exist. Missing rows point to deletion, a failed write or a replaced table, while present rows point to the UI or API layer.
- Retention and deletion settings: Review any retention policy or deletion job configured for the instance or project, since a retention job can remove older data on purpose. Confirm the configured retention period with your own settings.
- Worker errors during reprocessing: Look for worker log entries that show a write failing or a job retried after partial success. Repeated attempts can leave the stored state inconsistent.
- Web container cache and read errors: Reload the trace through the API and compare results with the UI. A discrepancy suggests a read or caching problem in the web layer.
- Recent upgrades or migrations: Check whether a version change, migration or ClickHouse maintenance ran around the time the data disappeared. Migration state can affect which tables the UI reads.
Confirm whether the rows exist in ClickHouse before you change anything, since that answer separates a write problem from a read problem.
Checking whether the event reached blob storage and the worker
Once the web container has accepted a request, the next question is whether the raw event made it into the S3-compatible bucket you configured for Langfuse. Self-hosted Langfuse writes incoming events to blob storage before the worker processes them, so the bucket is the first place to look that separates a lost event from a slow one. Find the bucket name and endpoint from the environment settings on the web container, then search the bucket for objects written around the time your test SDK call ran. Use the bucket tooling your team already trusts, such as the AWS CLI pointed at a custom endpoint for MinIO or other S3-compatible stores. Confirm the exact key prefix and object layout for your deployed version in the Langfuse self-hosting docs before you write any search, because the layout has changed between releases and guessing it wastes time.
If the object is absent, the event never left the web tier, so focus there: check that the SDK reached the correct host, that the web container returned success, and that it did not fail while writing to storage. Reachability and credentials for the bucket are the usual causes, and they show up in the web logs as storage write errors. If the object is present, the event was stored and the problem sits downstream, in queueing or worker processing. Record the object name and its timestamp, because the worker logs will be matched against them in the next step.
Common causes operators find
When a trace reaches the SDK but never appears in the UI, the cause usually sits in one of a few places on the ingestion path. The cards below cover the components that accept, queue, store and process an event, and the check that confirms each one.
Redis or Valkey unavailable or evicting
Ingestion events are queued through Redis or Valkey before the worker processes them. If the cache is down, out of memory, or configured with an eviction policy that drops queued keys, events can be accepted by the web container and then lost before processing. Check the cache's connectivity from both the web and worker containers, its memory usage, and its eviction policy. Confirm the policy with your Redis or Valkey documentation so queued jobs are not evicted under memory pressure.
- Minimum for Redis or Valkey
- 1 CPU, 1.5 GiB
Blob storage bucket or credentials misconfigured
Langfuse writes each incoming event to S3-compatible blob storage before the worker reads it back. A wrong bucket name, region, endpoint, or access key can make writes fail or land in a different bucket than the one the worker reads from. Check the event upload settings in both containers match, then list the bucket for the event's prefix and timestamp to confirm the object exists.
Worker not running or scaled to zero
The worker container performs the asynchronous processing that moves events into ClickHouse. If it has crashed, failed its startup migration, or was scaled to zero replicas by an autoscaler or a Helm value, events will queue indefinitely with no error in the UI. Check the worker pods or containers are running, read their logs for startup errors, and confirm the replica count and queue depth in your monitoring.
Scaling guideClickHouse unreachable or out of disk
Processed observations are written to ClickHouse, so the UI shows nothing for a trace even when the web and worker are healthy if ClickHouse rejects writes. Network paths, wrong credentials, or a full data volume all produce this symptom. Check connectivity from the worker to ClickHouse, the free space on the data volume, and the worker logs for insert errors before changing anything else.
- Minimum for ClickHouse
- 2 CPU, 8 GiB
Web container errors on ingestion
The web container accepts trace requests on the public API and returns success only after it hands the event off. Errors on this path, such as proxy timeouts, rejected authentication, or payload size limits at a load balancer, can make the SDK report failures or drop batches silently. Check the web container's access and error logs for 4xx and 5xx responses on the ingestion endpoint, and compare them with the time of the missing trace.
Clock or project key mismatch
A trace sent with public and secret keys from a different project, or from an application whose clock is far off the server, can be filed under another project or outside the time window the UI is showing. Check that the SDK's public and secret keys belong to the project you are viewing, that the host time is synchronized with NTP on the application and the Langfuse servers, and that the UI time filter covers the trace's timestamp.
Diagnostic checks and when each fits
This table compares the checks an operator can run to locate a missing trace, from the SDK through the web container, Redis, blob storage, the worker and ClickHouse. Read it top to bottom in the order the event travels, and run the check that matches the stage where the trace last appeared.
| Check | Question it answers | When a self-hosted team should run it |
|---|---|---|
| Web container logs | Did langfuse-web accept the request and return an error or success to the SDK? | First step when the SDK reports an error, or when no ingestion request reaches the worker at all. |
| Redis connectivity | Can langfuse-web and langfuse-worker reach Redis or Valkey, and is the ingestion queue reachable? | When web logs show queue or connection errors, or when events are accepted but never leave the queue. |
| Blob bucket listing | Did the raw event payload land in the S3-compatible bucket with the expected key prefix? | When the web container accepted the event but the worker reports nothing to process, to confirm the upload step worked. |
| Worker logs | Did langfuse-worker pick up the event, process it, and write it onward, or did it fail with an error? | When the payload exists in blob storage but the trace never shows in the UI. |
| ClickHouse query on recent events | Do rows for the recent trace IDs exist in the observations and traces tables? | After the worker reports success, to decide whether the gap is in storage or in the UI read path. |
| SDK debug logging | Is the SDK sending the events, with what IDs, and does it receive a success status? | Early in triage, to rule out client-side problems such as wrong keys, host or flush not called before exit. |
| Worker queue and processing delay | Is the event still waiting or being retried, or is processing simply slow after a recent load spike? | When the trace appears late rather than never, to separate a backlog from a failure. |
Handling trace data safely while debugging
Tracing a missing event means reading raw payloads, and those payloads often hold prompts, completions and personal data. The cards below cover where that data sits during an investigation and how to keep the investigation from spreading it beyond the people who need it.
Restrict access to blob storage
The raw event JSON that ingestion writes to S3-compatible blob storage is the most complete copy of what the SDK sent, including full prompt and completion text. Before you look for an event there, confirm who holds read access to the bucket and its credentials, and use a named, time-limited role for the investigation rather than a shared administrator key. Record who viewed which object and when, so you can answer the question later if one comes up.
Langfuse self-hosting docsKeep payloads out of tickets
Incident tickets, chat threads and email get copied to many people and kept far longer than the investigation. When you report a missing trace, cite the trace ID, project ID, timestamp and the stage where the event stopped, and leave out the input and output text. If a reviewer needs the content, share it through the access-controlled system instead of pasting it into the ticket body.
Keep debug logging off in production
Verbose logging in the web and worker containers can write request bodies or event contents into container logs, which are then shipped to a central log store with its own retention and access rules. Turn on debug output only for a bounded window on the affected container, note when you enabled it, and turn it off again. Confirm with your platform team which log level is the production default before the incident starts.
Limit who can read the database
Rows in PostgreSQL and ClickHouse hold trace metadata, and in many setups input and output fields as well. Query the tables with a read-only account, scoped to the project you are investigating, and avoid exporting result sets to local files. Ask your security team whether query activity on these data stores is logged, since that log is often the record an auditor asks for later.
Plan retention and masking separately
The masking, retention and audit features that govern trace data at rest need an Enterprise license key, so a standard open source deployment may not have them. Until you have confirmed what your edition provides, treat every stored payload as sensitive and set your own rules for how long debug copies persist. The governance features are covered on the separate Langfuse features page.
Questions teams ask before hiring help with missing traces
How long does it take to find out why traces are missing?
Diagnosis time depends mostly on how much of the path your team can reach and how clearly the failing event can be identified. A single known SDK, one web container and a healthy queue can be traced quickly. Time grows when the cause sits between components, such as a Redis backlog that only appears under load, a blob storage permission that differs between web and worker, or ClickHouse writes that fail after an upgrade. Ask any partner to state the access they need on day one, the sample events they will trace end to end, and what they will deliver if the cause is not found within the agreed scope. Duration is a quote item, not a fixed number.
What access and logs does the client team need to provide?
The work needs read access to the cluster or VM hosts running Langfuse Web and Langfuse Worker, their container logs, and the environment configuration with secrets masked. It also needs read access to the blob storage bucket used for event uploads, a way to query ClickHouse and PostgreSQL, and the Redis or Valkey status. Ask for a sample event ID, the SDK version and the timestamp when traces were last seen. Access should be scoped to read-only roles where possible, and the client should agree in writing how credentials and exported logs are handled and deleted after the engagement.
Can our internal platform team troubleshoot missing traces alone?
Often yes, if someone on the team knows the Langfuse event path well enough to follow an event from the SDK through the web container, the blob store, the queue and the worker. The skills involved are container logs, object storage inspection, Redis queue checks and basic ClickHouse queries. The main risk is that the team lacks a reference event to test with or does not have a rollback path during the investigation. Build a short runbook first, and use the Langfuse self-hosting documentation to confirm the components and versions in your deployment before changing anything.
What does a fixed-scope troubleshooting engagement cover?
A fixed-scope engagement covers the systems, environments and symptoms named in a written statement of work. Typically that means reproducing a missing trace, tracing it through each component, identifying the failing stage, recommending or applying a fix within the agreed boundaries, and documenting the root cause and checks for recurrence. It usually excludes unrelated performance tuning, data recovery beyond the agreed events and changes to SDK code in applications owned by others. Ask for the deliverables list, the environments in scope, who makes production changes and how retesting is handled.
What drives the cost of troubleshooting missing traces?
Cost follows the effort needed to reach a verified cause and any fix. The main drivers are how many components are involved, whether the environment is Kubernetes, a VM or an air-gapped network, how many SDKs and applications send events, how quickly access is granted, and whether logs are retained long enough to inspect past events. Expect a one-time diagnostic fee for the investigation and separate work for permanent fixes, monitoring or retainers. Ask any provider to price these as separate line items so you can see what you pay for the diagnosis and what you pay for the change.
When does a Langfuse support plan matter for missing traces?
A Langfuse support plan matters when the issue may come from the product itself, when you need a vendor escalation path, or when your organization requires a contracted support SLA. According to Langfuse's self-hosted pricing page, the Self-Hosted Enterprise plan adds a named support engineer, solutions architect access and a support SLA, while the open source plan is free. Confirm the current terms directly with Langfuse before relying on them, because a partner's diagnosis and a vendor support agreement cover different things and can be used together.
Will a partner guarantee that all missing traces are recovered?
No partner can responsibly promise that every lost trace is recoverable, because recovery depends on what was written to blob storage, what the queue retained and what the SDK sent. A reputable engagement describes the investigation method, the evidence it produces and the actions it can take on your systems. Ask for a written description of what is recoverable, which events are in scope, and what evidence you will receive at the end.
How DeployOpen works on this
DeployOpen treats missing traces as a chain to walk, from the SDK call through the web container, the queue, blob storage and the worker, before changing anything. The work runs inside your own infrastructure, on the same self-hosted Langfuse codebase that Langfuse Cloud uses, so findings apply to your deployment.
How we scope
- The written scope names the affected environments, the SDK paths in use and the trace types that went missing.
- We agree which logs, container versions and access to Redis, S3 and PostgreSQL the diagnosis needs before work starts.
- Engagements are fixed-scope, with deliverables and timelines confirmed in writing before any troubleshooting begins.
How we build
- We trace one test event end to end, confirming SDK export, web receipt, queue handoff, blob write and worker processing.
- We record which stage drops or delays events, and whether the cause is configuration, capacity, networking or a version mismatch.
- Fixes are applied in your environment, then re-tested with fresh events to confirm traces appear in the UI as expected.
How we hand over
- You receive a written root-cause summary with the evidence collected at each stage of the event path.
- The runbook covers the checks to repeat, the log locations and the signals that should trigger escalation next time.
- We walk your platform and SRE team through the checks so they can rerun the diagnosis without us.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the original engagement.
- Retainers can cover recurring health checks on ingestion, queue depth reviews and re-testing after Langfuse version changes.
- Ask any provider to confirm which Langfuse versions, SDK versions and access levels their support covers before signing.

