diff --git a/ddapm_test_agent/agent.py b/ddapm_test_agent/agent.py index b1e7792..3dc413f 100644 --- a/ddapm_test_agent/agent.py +++ b/ddapm_test_agent/agent.py @@ -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) @@ -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), diff --git a/releasenotes/notes/llmobs-evp-proxy-1383f4b4962ac7c9.yaml b/releasenotes/notes/llmobs-evp-proxy-1383f4b4962ac7c9.yaml new file mode 100644 index 0000000..674824f --- /dev/null +++ b/releasenotes/notes/llmobs-evp-proxy-1383f4b4962ac7c9.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Add `/evp_proxy/v2/api/v2/llmobs` endpoint to collect requests.