Repository navigation
Send agent telemetry through the LiteLLM gateway into Lens - #50
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #42 now that LiteLLM
v1.112.0-rc.1is tagged with gateway OTLP forwarding and the Lens-served UI. Agent telemetry now goes to the gateway with a LiteLLM key, the gateway forwards it to the private Lens service, and the gateway home page opens Lens. Lens moves to 0.5.0, the latest stable releaseghcr.io/berriai/litellm:v1.112.0-rc.1@sha256:3082365...(multi-arch index) in Compose and Helm, replacingmain-stablein Composeinstall.shand the Helm chart (lens-connection.yaml) generate a sharedLITELLM_LENS_SERVICE_TOKENandLENS_GATEWAY_SECRETfor both services, kept across upgrades, and setLITELLM_LENS_URL,LITELLM_LENS_PUBLIC_URL,DOCS_URL=/docsandROOT_REDIRECT_URL=/ui/lens/on the gateway. Withlens.enabled=falsenone of this is setaws/bootstrap.pyredirects/litellmto/litellm/ui/lens/and agents export to/litellm/v1/tracesand/litellm/v1/logs. Standalone/v1/traces,/v1/logs,/ui,/lensroutes stay for existing tracing-key exporters. A narrow nginx redirect handles the RC's doubled/litellmprefix in the Lens iframe URL. CloudFront already forwards these paths uncached, andt3.xlargefrom Run standalone Lens on AWS installs #42 has enough room, soaws/stack.yamlis unchangedREADME.mdanddocs/setup.md: send OTLP to the gateway with a LiteLLM keyValidation
In each of Compose (isolated network), kind (v0.33.0) and the AWS nginx routing run locally, a uniquely named OTLP span and log were posted to the gateway with a temporary LiteLLM key, then read back from Lens by trace id, and a signed-in browser opened the gateway root and landed on Lens
After the bump, Compose, kind and the local AWS nginx routing were rerun on Lens 0.5.0 with the same results. A kind upgrade from 0.4.0 kept the ClickHouse volume, and the trace and log written on 0.4.0 were still queryable on 0.5.0. On kind, Helm upgrades that disable then re-enable Lens kept both shared credentials. Unit tests 99 OK (with the kind kubeconfig), Helm lint clean, launcher browser tests 15/15. No live AWS run: the AWS paths were checked against the nginx config
bootstrap.pyemits, not a CloudFormation stackDetails
Link to Devin session: https://app.devin.ai/sessions/97f537dadadd49af998d06b7c0c599fa
Open in Devin Desktop: https://app.devin.ai/desktop/session/97f537dadadd49af998d06b7c0c599fa?variant=devin
Requested by: @moe-berri