> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Telemetry

> Exactly what the hosted EvalGate service sends to third parties about its own operation, what a self-hosted install sends by default, and how to turn each part off.

This page lists every kind of telemetry EvalGate sends about its own
operation. It does not cover the evaluation data, traces and evidence that
your workspace stores in EvalGate; the [privacy policy](https://evalgate.com/privacy)
covers those.

EvalGate runs **no product analytics**: no PostHog or similar SDK, no user
profiles, no product events, no session recording.

## What the hosted service sends

| Part | When | What leaves | What never leaves |
| - | - | - | - |
| Sentry, server errors | Always, for errors on our servers | Error type, route template (ids replaced with `[param]`), HTTP method and status, component and operation names, and keyed hashes of the request and organization ids | Error messages, stack traces, request bodies, headers, cookies, query strings, IP addresses, user details, logs, breadcrumbs, performance traces |
| Sentry, browser errors | Only after you allow analytics, and never with Do Not Track or Global Privacy Control on | The same reduced event: error type and page route | Stack traces, error messages, IP addresses, cookies, session replays, breadcrumbs, performance traces |
| Vercel Web Analytics | Only after you allow analytics, only on public marketing pages, never with Do Not Track or Global Privacy Control on | An aggregate, cookieless page view, reported as a page category such as `home` or `pricing` | The visited URL, query strings, identifiers, anything from the signed-in product |
| Self-telemetry | Only when the operator sets both of its settings | Request spans: route template, status code, duration, and error type | See [Self-telemetry](#self-telemetry) |

### Sentry

* **Errors only.** `tracesSampleRate` is `0` on the server, edge and browser,
  so no performance transactions are sent. Logs (`enableLogs: false`),
  session replays (both replay sample rates `0`) and breadcrumbs (dropped in
  `beforeBreadcrumb`) are off.
* **Sanitized before sending.** Every event passes `sanitizeSentryEvent`
  (`src/lib/sentry-sanitize.ts`), which rebuilds it from an allow-list: the
  message becomes `Operational exception`, the exception keeps only its type,
  and only validated tags and operational context survive.
  `sendDefaultPii` is `false`.
* **Browser errors need consent.** The browser SDK starts only once the
  visitor allows analytics and neither Do Not Track nor Global Privacy Control
  is set. Withdrawing consent closes it; allowing it later starts it without a
  reload. Server and edge reporting do not depend on this choice.
* **No visitor IP addresses.** Browser reports for a sentry.io DSN go through
  this deployment's `/monitoring` route, which forwards only the envelope, so
  Sentry sees the server's address, not the visitor's.

### Vercel Web Analytics

Off until the visitor allows it in the analytics banner or the **Analytics
choices** link in the footer, and off whenever Do Not Track or Global Privacy
Control is set. It runs only on public marketing pages, and each page view is
rewritten to a page category before it is sent.

## Self-telemetry

An optional exporter sends the deployment's own request spans and errors to
an EvalGate OTLP intake, so EvalGate can be operated with EvalGate. It is
**off unless both** of these are set:

```bash theme={null}
EVALGATE_SELF_TELEMETRY_OTLP_URL=https://<evalgate>/api/otel/v1/traces
EVALGATE_SELF_TELEMETRY_API_KEY=<an EvalGate API key>
```

The URL must be `https` (plain `http` is accepted only for `localhost`). It
is independent of `OTEL_ENABLED` and does not register a second tracer.

Only server request spans that carry a route template are exported, each
reduced to this allow-list:

* `http.route`, the route template, with query strings removed and id-like
  segments replaced with `[param]`
* `http.response.status_code`
* start and end time, trace and span id, and span status
* `exception` events with `exception.type`, the message reduced by the
  Sentry sanitizer, and `error.type` on the span

Requests to the URL's own path are never exported. If the URL points at this
deployment's intake, each delivery is itself a request, and exporting it
would keep telemetry running forever with the app idle.

Never exported: request or response bodies, headers, cookies, query
strings, user, organization or session identifiers, client addresses, host
and process details, customer content, database and outbound-call spans,
links and remote parents. Collector credentials in
`OTEL_EXPORTER_OTLP_HEADERS` are never sent to this endpoint; the only
credential is `EVALGATE_SELF_TELEMETRY_API_KEY`, as a Bearer token.

## Self-hosted installs

A self-hosted install sends **no telemetry by default**. Each part needs a
setting the operator chooses:

| Part | Default | Turned on by | Turn it off |
| - | - | - | - |
| Sentry (server, edge, browser) | Off | `NEXT_PUBLIC_SENTRY_DSN` | Leave `NEXT_PUBLIC_SENTRY_DSN` empty |
| Vercel Web Analytics | Nothing sent | Hosting on Vercel, plus each visitor's consent | Host outside Vercel (the script is served only at Vercel's `/_vercel/insights/` path), or decline in the banner |
| OpenTelemetry export of traces, metrics and logs | Off | `OTEL_ENABLED=true` and the `OTEL_EXPORTER_OTLP_*` settings | Unset `OTEL_ENABLED`, or set `OTEL_METRICS_EXPORTER=none` / `OTEL_LOGS_EXPORTER=none` for one signal |
| Log drain | Off | `LOG_DRAIN_URL` with `LOG_DRAIN_ALLOWED_ORIGINS` | Unset `LOG_DRAIN_URL` |
| Self-telemetry | Off | `EVALGATE_SELF_TELEMETRY_OTLP_URL` and `EVALGATE_SELF_TELEMETRY_API_KEY` | Unset either one |

With the self-hosted profile, the deployment's feature report lists each of
these destinations and whether it can be reached; under the air-gapped
profile, Sentry and self-telemetry are reported as unavailable unless their
hosts are on the allowlist. An air-gapped install also refuses to boot with
a Sentry DSN or `EVALGATE_SELF_TELEMETRY_OTLP_URL` whose host is not on
`EVALGATE_PRIVATE_NETWORK_ALLOWLIST`, and self-telemetry stays off for such a
host whether or not `OTEL_ENABLED` is set.

## Operator notes

> [!NOTE]
>
> If you point `NEXT_PUBLIC_SENTRY_DSN` at your own Sentry project, also turn
> on **Prevent storing IP addresses** and **server-side data scrubbing** in
> that project's security and privacy settings. EvalGate already strips IP
> addresses and personal data before sending, and these settings make Sentry
> enforce the same on its side, including for a self-hosted DSN that the
> browser reaches directly.

Settings referenced on this page are documented in `.env.example`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.