Skip to content

Commit

Permalink
Ignore err on writing header for V1 series
Browse files Browse the repository at this point in the history
  • Loading branch information
carrieedwards committed Jul 17, 2024
1 parent 7344265 commit 57c35ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/datadogreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (ddr *datadogReceiver) handleV1Series(w http.ResponseWriter, req *http.Requ
}

w.WriteHeader(http.StatusAccepted)
_, err = w.Write([]byte("OK"))
_, _ = w.Write([]byte("OK"))
}

// handleV2Series handles the v2 series endpoint https://docs.datadoghq.com/api/latest/metrics/#submit-metrics
Expand Down

0 comments on commit 57c35ad

Please sign in to comment.