Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion litellm/integrations/otel/presets/agentops.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
)
from litellm.integrations.otel.plumbing.providers import register_exporter_factory

_AGENTOPS_ENDPOINT = "https://otlp.agentops.cloud/v1/traces"
_AGENTOPS_ENDPOINT = "https://otlp.agentops.ai/v1/traces"
_AGENTOPS_AUTH_ENDPOINT = "https://api.agentops.ai/v3/auth/token"
_AGENTOPS_EXPORTER_KIND = "agentops"

Expand Down
9 changes: 9 additions & 0 deletions tests/test_litellm/integrations/otel/test_otel_v2_presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,12 @@ def post(self, *_a, **_k):
result = _fetch_agentops_jwt("api-key")
assert result == {"token": "jwt-123"}
assert closed["n"] == 1 # the owned client was closed


def test_agentops_endpoint_points_at_live_host():
# Regression: the OTLP endpoint must be the resolvable AgentOps host. The
# deprecated otlp.agentops.cloud domain no longer resolves (NXDOMAIN), so
# spans silently failed to export with a NameResolutionError. Pin the host
# so a typo or stale domain can never ship again.
assert _AGENTOPS_ENDPOINT == "https://otlp.agentops.ai/v1/traces"
assert "agentops.cloud" not in _AGENTOPS_ENDPOINT
Loading