Overview
These pages describe what is running today. They grow as TraceStitch does: a page is added when a capability ships, not ahead of it.
TraceStitch is Hosho's observability product for AI agents. It reads what your tracing tool, your monitoring, your database and your product analytics each recorded about a request, joins them into one record, tags every request with facts, and finds patterns across requests.
A request is one execution of your agent, from input to final output. A fact is one named thing that is true of a request. A pattern is a named group of requests that share facts.
These pages are for the engineer deciding whether to connect TraceStitch.
| Question | Answer |
|---|
| What does it read? | Traces from Langfuse, latency and errors from Grafana, tables you choose in Postgres, and events from PostHog. |
| What is added to your agent? | Nothing. No SDK is required. |
| How do you connect? | A guided install for your database, during onboarding. Read-only access for the other sources. |
| What do you get? | One record per request, with its steps in order. Facts on every request, each labelled by how it was made. Patterns, each with its count, its denominator and example requests. |
| Where do you read it? | The TraceStitch dashboard, an HTTP API, and a read-only MCP (Model Context Protocol) server: seven tools a coding agent can call. |
What it reads
TraceStitch reads traces, metrics, records and events. A trace shows what the agent did, step by step. Metrics, records and events show what your other systems recorded about the same request.
| Kind | Source | How TraceStitch reads it |
|---|
| Traces | Langfuse | The Langfuse API, with a read-only key that you create. |
| Metrics | Grafana | Latency, errors and timeouts per request, through read-only access that you create. |
| Records | Postgres | A scheduled query, limited to the tables you tick at install. |
| Events | PostHog | The PostHog Query API, one day per query. |
TraceStitch pulls on a schedule, hourly by default. It keeps a watermark per source, a marker of how far the last pull read, and re-reads the last hour on every pull to catch steps that arrive late.
Records are joined to a request by an identifier present on both sides, usually the session or conversation id. Without one, a record is attached by account and time window, and is marked as joined by time.
From a trace, TraceStitch needs the request, its steps, and the input and output content.
Connect
Nothing is added to your agent. No SDK is required.
During private beta, we connect your database with you in a guided install. You authorize on your database provider's own page, so no password or token is ever pasted into a terminal, an email, or a chat.
You pick the project and tick which tables TraceStitch may read. Nothing is created until you confirm. The install then creates two tables, hosho.runs and hosho.results, in your own database, under a role scoped to them.
Langfuse, Grafana and PostHog each connect with read-only access that you create. To check the connection, open one request in TraceStitch and compare its steps, inputs and outputs with the same trace in Langfuse.
Where your data lives
TraceStitch reads your sources with read-only credentials and starts every connection itself. The only thing it writes is its results, into two tables in your own database. It keeps a raw copy of everything it fetches.
| Data | What TraceStitch does with it |
|---|
| Traces, metrics, events and records | Reads them. Keeps a raw copy. |
| Tables in your database | Reads only the tables you ticked. The role cannot reach the rest of your project. |
| Results | Written into your own database, in the two tables the installer creates. Nothing else is written to your database. |
| Your data, schema and pipeline | Not modified. |
| Your database login | Served on an authenticated call, held in memory, never logged or persisted. |
| A customer's identity | Can be replaced by an alias at ingestion, so reviewers do not see who the customer is. |
Masking runs on your side, in your tracing SDK, before a trace is stored. TraceStitch reads only what your tracing tool holds.
SOC 2: Hosho does not hold a report today. The platform is built against the criteria, and Hosho will walk through where it stands, control by control.
Limitations
What TraceStitch cannot do today.
- A source that is not listed under What it reads is not read.
- A request your tracing did not sample cannot be read. Head sampling, which decides at the start of a request whether to keep its trace, can drop the failing requests.
- A request is only as complete as its sources.
- Data lags by the pull interval plus any delay in your tracing tool. Patterns are searched for nightly.
- A pattern is a hypothesis until a person has read its evidence. At low volumes a pattern can rest on a few requests, so its count is always shown.
TraceStitch by Hosho · 15 November 2026