You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sources/shared/reference/components/otelcol-http-client-block.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ The following arguments are supported:
12
12
|`auth`|`capsule(otelcol.Handler)`| Handler from an `otelcol.auth` component to use for authenticating requests. || no |
13
13
|`compression`|`string`| Compression mechanism to use for requests. |`"gzip"`| no |
14
14
|`disable_keep_alives`|`bool`| Disable HTTP keep-alive. |`false`| no |
15
+
|`force_attempt_http2`|`bool`| Force the HTTP client to try to use the HTTP/2 protocol. |`true`| no |
15
16
|`headers`|`map(string)`| Additional headers to send with the request. |`{}`| no |
16
17
|`http2_ping_timeout`|`duration`| Timeout after which the connection will be closed if a response to Ping isn't received. |`"15s"`| no |
17
18
|`http2_read_idle_timeout`|`duration`| Timeout after which a health check using ping frame will be carried out if no frame is received on the connection. |`"0s"`| no |
@@ -36,4 +37,7 @@ If `http2_ping_timeout` is unset or set to `0s`, it will default to `15s`.
36
37
37
38
If `http2_read_idle_timeout` is unset or set to `0s`, then no health check will be performed.
38
39
40
+
Golang's default HTTP transport attempts HTTP/2 by default, however some settings (`max_conns_per_host`, `max_idle_conns_per_host`, `max_idle_conns`) are only relevant for HTTP/1.
41
+
The `force_attempt_http2` attribute allows a user to only attempt HTTP/1.
0 commit comments