Skip to content

Commit

Permalink
Update receiver.go
Browse files Browse the repository at this point in the history
  • Loading branch information
meenal-developer authored May 25, 2024
1 parent 4c201f6 commit 41adf31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/datadogmetricreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (ddr *datadogmetricreceiver) handleV2Series(w http.ResponseWriter, req *htt
var err error
// is the Datadog agent using V1 endpoint ? Datadog V1 uses json input
// and slightly different payload structure.
if strings.HasPrefix(req.URL.Path, "/datadog/api/v1") {
if strings.HasPrefix(req.URL.Path, "/api/v1") {
var v1Metrics metricsV1.MetricsPayload
err = json.Unmarshal(body, &v1Metrics)
if err != nil {
Expand Down

0 comments on commit 41adf31

Please sign in to comment.