ON-PREM CHOREO CLOUD BOTH

What it is

The otel RestApi is a gateway route for telemetry. It accepts POST /otel/v1/traces from agents, checks the sender's JWT, and passes the trace data on to the OpenTelemetry collector. No other path is allowed.

Why it exists

Traces must reach the platform from many places, including agents outside it. Authenticating them at the gateway stops anyone from writing fake traces.

How it works

  • A RestApi resource named <gateway>-otel-restapi with context /otel, created by the gateway chart.
  • Applies the jwt-auth policy using the header x-amp-api-key and the key manager agent-manager-service.
  • Copies token claims to headers (x-user-id, x-user-component, x-user-environment, x-user-project, x-user-namespace) so traces are tagged.
  • Forwards to the collector on port 4318.

Identity and access

The agent's AMS-issued JWT must be valid for the gateway's key manager, which fetches AMS's public keys. The collector itself does no check.

Key facts

Context
/otel
Allowed
POST /v1/traces only
Upstream
Collector port 4318
Side
Data plane (gateway)
Namespace
<org>-<env>

Talks to (1)