Skip to content

Commit

Permalink
pkg/trace/api: reply using JSON when presampling on v0.4 endpoint (#3051
Browse files Browse the repository at this point in the history
)

This change updates the response of the presampler to match the version
endpoint that is in use. Previously the "OK" response was sent for the
`v0.4/traces` endpoint which was inaccurate.
  • Loading branch information
gbbr authored Feb 18, 2019
1 parent c9b7561 commit 69379ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/trace/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (r *HTTPReceiver) replyTraces(v Version, w http.ResponseWriter) {
func (r *HTTPReceiver) handleTraces(v Version, w http.ResponseWriter, req *http.Request) {
if !r.PreSampler.Sample(req) {
io.Copy(ioutil.Discard, req.Body)
HTTPOK(w)
r.replyTraces(v, w)
return
}

Expand Down

0 comments on commit 69379ff

Please sign in to comment.