Skip to content

Commit 476d721

Browse files
authored
[AutoOps] Configure OTel Exporter to Send Maximum-sized Batches (#10126)
This configures the standard `sending_queue` to batch-process and limit the maximum size of payloads being sent over the wire to avoid proxy and other rejections. Note: `max_size` is uncompressed bytes.
1 parent 91394cc commit 476d721

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

internal/pkg/otel/samples/darwin/autoops_es.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ exporters:
3636
headers:
3737
Authorization: "AutoOpsToken ${env:AUTOOPS_TOKEN}"
3838
endpoint: ${env:AUTOOPS_OTEL_URL}
39+
sending_queue:
40+
batch:
41+
max_size: 4194304 # 4 MiB
42+
sizer: bytes
43+
enabled: true
3944

4045
service:
4146
pipelines:

internal/pkg/otel/samples/linux/autoops_es.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ exporters:
3636
headers:
3737
Authorization: "AutoOpsToken ${env:AUTOOPS_TOKEN}"
3838
endpoint: ${env:AUTOOPS_OTEL_URL}
39+
sending_queue:
40+
batch:
41+
max_size: 4194304 # 4 MiB
42+
sizer: bytes
43+
enabled: true
3944

4045
service:
4146
pipelines:

internal/pkg/otel/samples/windows/autoops_es.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ exporters:
3636
headers:
3737
Authorization: "AutoOpsToken ${env:AUTOOPS_TOKEN}"
3838
endpoint: ${env:AUTOOPS_OTEL_URL}
39+
sending_queue:
40+
batch:
41+
max_size: 4194304 # 4 MiB
42+
sizer: bytes
43+
enabled: true
3944

4045
service:
4146
pipelines:

0 commit comments

Comments
 (0)