mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
app/{vmagent/insert} fix typo in Firehose
Signed-off-by: Artem Navoiev <tenmozes@gmail.com>
This commit is contained in:
parent
456180b9d9
commit
f668489051
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ func InsertHandler(at *auth.Token, req *http.Request) error {
|
||||||
isGzipped := req.Header.Get("Content-Encoding") == "gzip"
|
isGzipped := req.Header.Get("Content-Encoding") == "gzip"
|
||||||
var processBody func([]byte) ([]byte, error)
|
var processBody func([]byte) ([]byte, error)
|
||||||
if req.Header.Get("Content-Type") == "application/json" {
|
if req.Header.Get("Content-Type") == "application/json" {
|
||||||
if req.Header.Get("X-Amz-Firehouse-Protocol-Version") != "" {
|
if req.Header.Get("X-Amz-Firehose-Protocol-Version") != "" {
|
||||||
processBody = firehose.ProcessRequestBody
|
processBody = firehose.ProcessRequestBody
|
||||||
} else {
|
} else {
|
||||||
return fmt.Errorf("json encoding isn't supported for opentelemetry format. Use protobuf encoding")
|
return fmt.Errorf("json encoding isn't supported for opentelemetry format. Use protobuf encoding")
|
||||||
|
|
Loading…
Reference in a new issue