Skip to content

Commit

Permalink
set request Close
Browse files Browse the repository at this point in the history
  • Loading branch information
hstan committed Feb 4, 2025
1 parent f3b2a31 commit aae2f1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/backends/otlp/internal/data/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func createProtobufRequest(ctx context.Context, endpoint string, buf []byte, opt
return nil, err
}

req.Close = true
req.Header.Set("Content-Type", RequestContentTypeProtobuf)
for _, opt := range option {
opt(req)
Expand Down

0 comments on commit aae2f1a

Please sign in to comment.