From 35024cf358c7a9e48c9eb8e372a64c23c358a80d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=81=A4=E3=81=8D?= Date: Fri, 6 Sep 2024 10:55:41 -0700 Subject: [PATCH] Fix documentation for max_request_body_size (#11074) #### Description Fix documentation for max_request_body_size #### Link to tracking issue Fixes #11066 --- config/confighttp/README.md | 2 +- receiver/otlpreceiver/config.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/confighttp/README.md b/config/confighttp/README.md index d72a3805953..24d2905d7af 100644 --- a/config/confighttp/README.md +++ b/config/confighttp/README.md @@ -78,7 +78,7 @@ will not be enabled. header, allowing clients to cache the response to CORS preflight requests. If not set, browsers use a default of 5 seconds. - `endpoint`: Valid value syntax available [here](https://github.com/grpc/grpc/blob/master/doc/naming.md) -- `max_request_body_size`: configures the maximum allowed body size in bytes for a single request. Default: `0` (no restriction) +- `max_request_body_size`: configures the maximum allowed body size in bytes for a single request. Default: `20971520` (20MiB) - `compression_algorithms`: configures the list of compression algorithms the server can accept. Default: ["", "gzip", "zstd", "zlib", "snappy", "deflate"] - [`tls`](../configtls/README.md) - [`auth`](../configauth/README.md) diff --git a/receiver/otlpreceiver/config.md b/receiver/otlpreceiver/config.md index 11d6433ce41..b77b4bdae73 100644 --- a/receiver/otlpreceiver/config.md +++ b/receiver/otlpreceiver/config.md @@ -76,7 +76,7 @@ Config defines configuration for OTLP receiver. | endpoint | string | localhost:4318 | Endpoint configures the listening address for the server. | | tls | [configtls-TLSServerSetting](#configtls-tlsserversetting) | | TLSSetting struct exposes TLS client configuration. | | cors | [confighttp-CORSConfig](#confighttp-corsconfig) | | CORSConfig configures a receiver for HTTP cross-origin resource sharing (CORS). | -| max_request_body_size | int | 0 | MaxRequestBodySize configures the maximum allowed body size in bytes for a single request. The default `0` means there's no restriction | +| max_request_body_size | int | 20971520 | MaxRequestBodySize configures the maximum allowed body size in bytes for a single request. The default `20971520` means 20MiB | ### confighttp-CORSConfig