Running Arize Phoenix behind an OpenTelemetry privacy collector
Traces with token counts and timings, without prompt text.
What it’s for
Section titled “What it’s for”LLM tracing in Phoenix with prompt and completion text kept out.
-
Phoenix (20.23.0-nonroot tested): non-root, a 10 GiB volume, 14-day retention,
PHOENIX_TELEMETRY_ENABLED=false. -
Collector (
otel/opentelemetry-collector-contrib0.163.2 tested): non-root,readOnlyRootFilesystem: true. Receive OTLP in-cluster without auth, and from outside only with a bearer token. Drop content attributes and events, keep model name, token counts and span kind, and export to Phoenix’s/v1/traces. -
Validate the config:
otelcol-contrib validate --config config.yaml- In the gateway (LiteLLM here), set:
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=NO_CONTENTOTEL_EXPORTER=otlp_httpOTEL_ENDPOINT=http://otel-collector.observability.svc.cluster.local:4318Check it worked
Section titled “Check it worked”- A trace with no token to the external endpoint returns 401.
- A trace with a token and made-up canary content (for example
secret.prompt.canary,gen_ai.content.prompt) returns 200. - In Phoenix the trace is present and none of the canary strings are.
Traps seen
Section titled “Traps seen”- Config fields from custom collector builds fail upstream validation.
- Container port names are limited to 15 characters.
Where this came from
Section titled “Where this came from”- Checking that the collector strips prompt text (2026-10-21)