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: exporter/otlphttpexporter/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ The following settings can be optionally configured:
42
42
-`write_buffer_size` (default = 512 * 1024): WriteBufferSize for HTTP client.
43
43
-`encoding` (default = proto): The encoding to use for the messages (valid options: `proto`, `json`)
44
44
-`retry_on_failure`: see [Retry on Failure](../exporterhelper/README.md#retry-on-failure) for the full set of available options.
45
+
-`non_retryable_status` (default = []): List of HTTP status codes that should NOT trigger retries. By default, the exporter retries on 429, 502, 503, and 504. This option allows marking these codes as permanent errors to prevent internal retries. Useful in gateway mode to prevent queue buildup when backends return rate limit errors.
45
46
-`sending_queue`: see [Sending Queue](../exporterhelper/README.md#sending-queue) for the full set of available options.
46
47
47
48
Example:
@@ -70,5 +71,16 @@ exporters:
70
71
encoding: json
71
72
```
72
73
74
+
To prevent internal retries for specific HTTP status codes (useful in gateway mode):
75
+
76
+
```yaml
77
+
exporters:
78
+
otlphttp:
79
+
endpoint: https://backend:4318
80
+
retry_on_failure:
81
+
enabled: true
82
+
non_retryable_status: [429, 503] # Don't retry rate limits and service unavailable
83
+
```
84
+
73
85
The full list of settings exposed for this exporter are documented [here](./config.go)
74
86
with detailed sample configurations [here](./testdata/config.yaml).
0 commit comments