feat(litellm): gateway traces reach Langfuse through Alloy, under the same redaction #634
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/litellm-via-alloy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
LiteLLM stored full prompts and outputs in Langfuse with no redaction (up to 187K characters per call, about 1,100 calls a day). This routes them through Alloy, so one redaction covers every span.
litellmon 4319, at the path the callback always posts to, reached through a newalloy-otlpService.claude_langfusetolangfuse_redact. Gateway spans skip the Claude labels, so they keep environmentproductionand trace namelitellm_request.Removed:
LANGFUSE_OTEL_HOSTfromapps/litellm/secret.sops.yaml; it is now a plain value indeployment.yaml. No redaction list was copied. The LiteLLM Langfuse keys stay because the callback refuses to start without them.Proved on
grafana/alloy:v1.5.1with the real blocks: LiteLLM's path returns 200 and/v1/traces404; a fakesk-value becomes<redacted:sk>, the rest of the text and the trace name survive; with the statements removed the value comes through.kubectl kustomize apps/alloyrenders the Service. Not proved until deployed: live spans still arrive in Langfuse.https://claude.ai/code/session_01BALUC2Sc2woMiYZb8kmzd3