Skip to content

Commit 1d518d2

Browse files
authored
[APM] Add v2 of the evp_proxy endpoint (#13825)
1 parent cfd6959 commit 1d518d2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pkg/trace/api/endpoints.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ var endpoints = []Endpoint{
116116
Pattern: "/evp_proxy/v1/",
117117
Handler: func(r *HTTPReceiver) http.Handler { return r.evpProxyHandler() },
118118
},
119+
{
120+
Pattern: "/evp_proxy/v2/",
121+
Handler: func(r *HTTPReceiver) http.Handler { return r.evpProxyHandler() },
122+
},
119123
{
120124
Pattern: "/debugger/v1/input",
121125
Handler: func(r *HTTPReceiver) http.Handler { return r.debuggerProxyHandler() },

pkg/trace/api/info_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func TestInfoHandler(t *testing.T) {
131131
"/v0.1/pipeline_stats",
132132
"/appsec/proxy/",
133133
"/evp_proxy/v1/",
134+
"/evp_proxy/v2/",
134135
"/debugger/v1/input"
135136
"/dogstatsd/v1/proxy"
136137
],
@@ -191,6 +192,7 @@ func TestInfoHandler(t *testing.T) {
191192
"/v0.1/pipeline_stats",
192193
"/appsec/proxy/",
193194
"/evp_proxy/v1/",
195+
"/evp_proxy/v2/",
194196
"/debugger/v1/input"
195197
"/dogstatsd/v1/proxy"
196198
],

0 commit comments

Comments
 (0)