Skip to content

Commit

Permalink
Add /evp_proxy/v2/api/v2/llmobs endpoint (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Verhoog authored Nov 4, 2024
1 parent a4891c7 commit 2d41fa7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ddapm_test_agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,10 @@ async def handle_v1_tracer_flare(self, request: Request) -> web.Response:
log.error(msg)
return web.HTTPBadRequest(text=msg)

async def handle_evp_proxy_v2_api_v2_llmobs(self, request: Request) -> web.Response:
await self._store_request(request)
return web.HTTPOk()

async def handle_put_tested_integrations(self, request: Request) -> web.Response:
# we need to store the request manually since this is not a real DD agent endpoint
await self._store_request(request)
Expand Down Expand Up @@ -1137,6 +1141,7 @@ def make_app(
web.post("/telemetry/proxy/api/v2/apmtelemetry", agent.handle_v2_apmtelemetry),
web.post("/profiling/v1/input", agent.handle_v1_profiling),
web.post("/tracer_flare/v1", agent.handle_v1_tracer_flare),
web.put("/evp_proxy/v2/api/v2/llmobs", agent.handle_evp_proxy_v2_api_v2_llmobs),
web.get("/info", agent.handle_info),
web.get("/test/session/start", agent.handle_session_start),
web.get("/test/session/clear", agent.handle_session_clear),
Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/llmobs-evp-proxy-1383f4b4962ac7c9.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
features:
- |
Add `/evp_proxy/v2/api/v2/llmobs` endpoint to collect requests.

0 comments on commit 2d41fa7

Please sign in to comment.