Skip to content

fix(otel): point AgentOps OTLP exporter at otlp.agentops.ai#31490

Merged
yucheng-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_fix_agentops_otlp_endpoint
Jun 27, 2026
Merged

fix(otel): point AgentOps OTLP exporter at otlp.agentops.ai#31490
yucheng-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_fix_agentops_otlp_endpoint

Conversation

@yucheng-berri

Copy link
Copy Markdown
Contributor

Relevant issues

Linear ticket

Pre-Submission checklist

  • I have added meaningful tests
  • My PR passes all CI/CD checks (e.g., lint, format, unit tests)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have requested a Greptile review and received a Confidence Score of at least 4/5

Screenshots / Proof of Fix

The AgentOps OTLP preset pointed at https://otlp.agentops.cloud/v1/traces, which no longer resolves, so spans were dropped before leaving the process

Before, the deprecated domain fails to resolve:

$ nslookup otlp.agentops.cloud
** server can't find otlp.agentops.cloud: SERVFAIL

and the exporter aborts:

urllib3.exceptions.NameResolutionError: HTTPSConnection(host='otlp.agentops.cloud', port=443): Failed to resolve 'otlp.agentops.cloud'
  File ".../litellm/integrations/otel/presets/agentops.py", line 120, in export
requests.exceptions.ConnectionError: ... Max retries exceeded with url: /v1/traces

After, the live host is reachable:

$ curl -s -o /dev/null -w '%{http_code}\n' https://otlp.agentops.ai/v1/traces
401

End to end with the fix: a litellm proxy with LITELLM_OTEL_V2=true and callbacks: ["agentops"], hitting a real Anthropic model, exported the full request trace (server span, auth, postgres lookups, guardrail, the LLM call, and the spend write) to AgentOps. The span landed with service_name=agentops and a real ProjectId in the AgentOps waterfall view; before the fix nothing arrived

Type

🐛 Bug Fix

Changes

_AGENTOPS_ENDPOINT now points at https://otlp.agentops.ai/v1/traces instead of the unresolvable otlp.agentops.cloud. The auth host (api.agentops.ai) was already correct and is unchanged. Added a regression test pinning the constant to the live host so a stale domain can never ship again

The AgentOps preset hardcoded https://otlp.agentops.cloud/v1/traces, a domain
that no longer resolves (NXDOMAIN), so every span silently failed to export with
a NameResolutionError in the BatchSpanProcessor worker. The live ingest host is
otlp.agentops.ai (the auth host api.agentops.ai was already correct). Pin the
endpoint to the resolvable host and add a regression test on the constant.
@yucheng-berri yucheng-berri marked this pull request as ready for review June 27, 2026 03:27
@codecov

codecov Bot commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@greptile-apps

greptile-apps Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates the AgentOps OTLP trace export endpoint. The main changes are:

  • Switches _AGENTOPS_ENDPOINT from otlp.agentops.cloud to otlp.agentops.ai
  • Keeps the AgentOps auth endpoint unchanged at api.agentops.ai
  • Adds a focused test that pins the OTLP endpoint to the live host and rejects the stale domain

Confidence Score: 5/5

The change is narrowly scoped to the AgentOps OTLP endpoint constant and a focused regression test.

No code issues were identified in the changed files, and the update aligns the exporter with the reachable AgentOps OTLP host while keeping auth behavior unchanged.

T-Rex T-Rex Logs

What T-Rex did

  • The OTLP endpoint regression for AgentOps was inspected by comparing the before-state log with the after-state log, noting the initial DNS resolution failure when contacting otlp.agentops.cloud.
  • The endpoint constant was updated from otlp.agentops.cloud to otlp.agentops.ai and the curl test was re-run, resulting in a connection to otlp.agentops.ai and an HTTP/2 401 Unauthorized response.
  • The head regression test command for the AgentOps preset was executed and reported 6 passed, 2 deselected, and 2 warnings.

View all artifacts

T-Rex Ran code and verified through T-Rex

Reviews (1): Last reviewed commit: "fix(otel): point AgentOps OTLP exporter ..." | Re-trigger Greptile

@yucheng-berri yucheng-berri merged commit 0216c96 into litellm_internal_staging Jun 27, 2026
122 checks passed
@yucheng-berri yucheng-berri deleted the litellm_fix_agentops_otlp_endpoint branch June 27, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants