Checking that the collector strips prompt text
Test prompt strings sent through the collector did not reach Phoenix.
I set up Arize Phoenix to look at traces from my LLM gateway, with an OpenTelemetry collector in front of it. I want token counts and timings. I don’t want prompt text stored.
Phoenix runs as a non-root user with 14 days of retention and its own telemetry off. The collector also runs as non-root with a read-only filesystem. It accepts traces from inside the cluster, and from outside only with a bearer token.
Two small traps:
- A collector config I’d staged before used a field that only existed in a custom image. Upstream
otelcol-contrib validaterejected it, so I removed it. - Two port names were 16 characters. Kubernetes allows 15. I shortened them.
Then I tested the privacy filter itself:
- A trace with no token got
401 Unauthorized. - A trace with a token, normal GenAI fields, and canary prompt fields I made up got
200. - In Phoenix, the trace was there, and none of the canary strings were.
That’s one test with my own canaries. I’ll repeat it whenever I change the collector config.
Recipes written later from this work: