There is no Prometheus
/metrics scrape endpoint. TrustGate is a data-plane proxy: it
emits a rich event per request over OpenTelemetry rather than exposing scrape-style
counters. See Telemetry for export configuration and
event shape.How it works
- A proxy middleware opens a request trace at the start of each request and records timings, routing attempts, and per-policy decisions as the request flows.
- When the response finishes (including after a fully-streamed SSE response), the trace is handed to an in-memory worker queue — never inline on the response path.
- Worker goroutines drain the queue, build the event, and export it to the configured OpenTelemetry collectors (and, for playground requests, a short-lived trace store).
Configuration
Trace depth is tuned with
TELEMETRY_ENABLE_REQUEST_TRACES and
TELEMETRY_ENABLE_PLUGIN_TRACES (both default true).
What the event carries
Each event is a single record with identity, request, response, usage, cost, a latency breakdown (total / provider / policies / routing / gateway), per-registry routing attempts, and the policy chain. The exact schema and how to export it are documented in Telemetry. For interactive inspection in the product UI:- Playground — generate a request under a consumer.
- Activity — request/response/policy detail for past traffic.
- Analytics — aggregates (volume, cost, policy actions).
- Getting started result step — first-trace summary after onboarding.