From 2f32fb1f1e30f45088ba440159783d44235fc451 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Tue, 11 Oct 2022 11:34:52 +0200 Subject: [PATCH] [APM] Add v2 of the evp_proxy endpoint --- pkg/trace/api/endpoints.go | 4 ++++ pkg/trace/api/info_test.go | 2 ++ 2 files changed, 6 insertions(+) diff --git a/pkg/trace/api/endpoints.go b/pkg/trace/api/endpoints.go index f07f286e62c499..149b1c66a36b29 100644 --- a/pkg/trace/api/endpoints.go +++ b/pkg/trace/api/endpoints.go @@ -116,6 +116,10 @@ var endpoints = []Endpoint{ Pattern: "/evp_proxy/v1/", Handler: func(r *HTTPReceiver) http.Handler { return r.evpProxyHandler() }, }, + { + Pattern: "/evp_proxy/v2/", + Handler: func(r *HTTPReceiver) http.Handler { return r.evpProxyHandler() }, + }, { Pattern: "/debugger/v1/input", Handler: func(r *HTTPReceiver) http.Handler { return r.debuggerProxyHandler() }, diff --git a/pkg/trace/api/info_test.go b/pkg/trace/api/info_test.go index 27227e5766326a..76e7d53a197cbf 100644 --- a/pkg/trace/api/info_test.go +++ b/pkg/trace/api/info_test.go @@ -131,6 +131,7 @@ func TestInfoHandler(t *testing.T) { "/v0.1/pipeline_stats", "/appsec/proxy/", "/evp_proxy/v1/", + "/evp_proxy/v2/", "/debugger/v1/input" "/dogstatsd/v1/proxy" ], @@ -191,6 +192,7 @@ func TestInfoHandler(t *testing.T) { "/v0.1/pipeline_stats", "/appsec/proxy/", "/evp_proxy/v1/", + "/evp_proxy/v2/", "/debugger/v1/input" "/dogstatsd/v1/proxy" ],