Metrics
A Prometheus-style endpoint exposes a fixed set of metric families. The names are stable. These metrics are relevant for capacity planning:
Scrape from
http://<gateway-host>:9091/metrics.
Tracing
Every RPC produces an OpenTelemetry trace with these standard fields:service.name=clutchcall-gatewaytenant.idcall.sid(when applicable)method.id(the RPC’smethod_iddecimal)transport=quic|webtransport|webrtc|sip
tenant
label.
OTLP endpoint defaults: http://localhost:4318 (HTTP) /
http://localhost:4317 (gRPC). Override via the gateway’s
OTEL_EXPORTER_OTLP_ENDPOINT env var.
Call Detail Records
When a call ends, the gateway pushes a CDR row to ClickHouse via the HTTPJSONEachRow interface. The schema is below. The telephony_cdrs
table is partitioned by month and indexed on (tenant_id, timestamp_ms):
These fields mirror the
CallEvent that you receive on
CHANNEL_HANGUP_COMPLETE. The data is the same, but the gateway
persists it server-side.
SIP capture (HEPv3)
For SIP-side debugging, the gateway can also send HEPv3 frames over UDP to a Homer / heplify-server instance. Use this when a call fails before anyCallEvent reaches the SDK and you must inspect the actual SIP
exchange.
Configure via:

