-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The linked document says:
MaxRequestBodySize configures the maximum allowed body size in bytes for a single request. The default 0 means there's no restriction
However, in actual code if max_request_body_size
is set to 0, the actual effective value is 20MiB, instead of no restriction:
const defaultMaxRequestBodySize = 20 * 1024 * 1024 // 20MiB |
opentelemetry-collector/config/confighttp/confighttp.go
Lines 414 to 416 in e99074d
if hss.MaxRequestBodySize <= 0 { | |
hss.MaxRequestBodySize = defaultMaxRequestBodySize | |
} |
Steps to reproduce
Send a larger than 20MiB payload to otlp receiver via otlp/http.
What did you expect to see?
Large payload is accepted
What did you see instead?
HTTP Status Code 400, Message=http: request body too large
What version did you use?
0.107.0
What config did you use?
Default otlp receiver config from otel collector helm chart 0.102.1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working