Skip to content

Commit 647da00

Browse files
authored
[chore] remove batch from various examples (#42562)
This updates existing examples to remove the batch processor to reduce dependency on it. Part of open-telemetry/opentelemetry-collector#13766 Signed-off-by: alex boten <[email protected]>
1 parent 9901cf8 commit 647da00

File tree

10 files changed

+8
-41
lines changed

10 files changed

+8
-41
lines changed

cmd/telemetrygen/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ receivers:
4646
grpc:
4747
endpoint: 0.0.0.0:4317
4848

49-
processors:
50-
batch:
51-
5249
exporters:
5350
debug:
5451
verbosity: detailed
@@ -57,15 +54,12 @@ service:
5754
pipelines:
5855
logs:
5956
receivers: [otlp]
60-
processors: [batch]
6157
exporters: [debug]
6258
metrics:
6359
receivers: [otlp]
64-
processors: [batch]
6560
exporters: [debug]
6661
traces:
6762
receivers: [otlp]
68-
processors: [batch]
6963
exporters: [debug]
7064
```
7165

confmap/provider/googlesecretmanagerprovider/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ receivers:
2727
protocols:
2828
grpc:
2929
http:
30-
processors:
31-
batch:
3230
3331
exporters:
3432
logging:
@@ -41,15 +39,12 @@ service:
4139
pipelines:
4240
traces:
4341
receivers: [otlp]
44-
processors: [batch]
4542
exporters: [logging, http]
4643
metrics:
4744
receivers: [otlp]
48-
processors: [batch]
4945
exporters: [logging, http]
5046
logs:
5147
receivers: [otlp]
52-
processors: [batch]
5348
exporters: [logging, http]
5449
5550
```

confmap/provider/s3provider/testdata/otel-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ receivers:
99
http:
1010

1111
processors:
12-
batch:
1312
memory_limiter:
1413
# 75% of maximum memory up to 4G
1514
limit_mib: 1536
@@ -25,11 +24,11 @@ service:
2524
pipelines:
2625
traces:
2726
receivers: [otlp]
28-
processors: [memory_limiter, batch]
27+
processors: [memory_limiter]
2928
exporters: [debug]
3029
metrics:
3130
receivers: [otlp]
32-
processors: [memory_limiter, batch]
31+
processors: [memory_limiter]
3332
exporters: [debug]
3433

3534
extensions: [zpages]

connector/roundrobinconnector/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ receivers:
5050
otlp:
5151
processors:
5252
resourcedetection:
53-
batch:
5453
exporters:
5554
prometheusremotewrite/1:
5655
prometheusremotewrite/2:
@@ -60,7 +59,7 @@ service:
6059
pipelines:
6160
metrics:
6261
receivers: [otlp]
63-
processors: [resourcedetection, batch]
62+
processors: [resourcedetection]
6463
exporters: [roundrobin]
6564
metrics/1:
6665
receivers: [roundrobin]

examples/secure-tracing/otel-collector-config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ receivers:
77
cert_file: /etc/otel-collector.crt
88
key_file: /etc/otel-collector.key
99

10-
processors:
11-
batch:
12-
1310
exporters:
1411
debug:
1512
verbosity: detailed
@@ -18,6 +15,5 @@ service:
1815
pipelines:
1916
traces:
2017
receivers: [otlp]
21-
processors: [batch]
2218
exporters: [debug]
2319

exporter/googlecloudexporter/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ These instructions are to get you up and running quickly with the GCP exporter i
9292

9393
2. **Create a configuration file `config.yaml`.** The example below shows a minimal recommended configuration that receives OTLP and sends data to GCP, in addition to verbose logging to help understand what is going on. It uses application default credentials (which we will set up in the next step).
9494

95-
Note that this configuration includes the recommended `memory_limiter` and `batch` plugins, which avoid high latency for reporting telemetry, and ensure that the collector itself will stay stable (not run out of memory) by dropping telemetry if needed.
95+
Note that this configuration includes the recommended `memory_limiter` plugins, which avoid high latency for reporting telemetry, and ensure that the collector itself will stay stable (not run out of memory) by dropping telemetry if needed.
9696

9797
```yaml
9898
receivers:
@@ -109,23 +109,22 @@ These instructions are to get you up and running quickly with the GCP exporter i
109109
check_interval: 1s
110110
limit_percentage: 65
111111
spike_limit_percentage: 20
112-
batch:
113112
resourcedetection:
114113
detectors: [gcp]
115114
timeout: 10s
116115
service:
117116
pipelines:
118117
traces:
119118
receivers: [otlp]
120-
processors: [memory_limiter, batch]
119+
processors: [memory_limiter]
121120
exporters: [googlecloud]
122121
metrics:
123122
receivers: [otlp]
124-
processors: [memory_limiter, batch]
123+
processors: [memory_limiter]
125124
exporters: [googlecloud]
126125
logs:
127126
receivers: [otlp]
128-
processors: [memory_limiter, batch]
127+
processors: [memory_limiter]
129128
exporters: [googlecloud]
130129
```
131130

exporter/logzioexporter/example/config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ exporters:
1111
account_token: "<<LOGZIO_ACCOUNT_TOKEN>>"
1212
#region: "<<LOGZIO_ACCOUNT_REGION_CODE>>" - (Optional): Your logz.io account region code. Defaults to "us". Required only if your logz.io region is different than US East. https://docs.logz.io/user-guide/accounts/account-region.html#available-regions
1313

14-
processors:
15-
batch:
16-
1714
extensions:
1815
pprof:
1916
endpoint: :1777
@@ -26,7 +23,6 @@ service:
2623
pipelines:
2724
traces:
2825
receivers: [jaeger, zipkin]
29-
processors: [batch]
3026
exporters: [logzio]
3127

3228
telemetry:

exporter/tinybirdexporter/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ receivers:
131131
grpc:
132132
http:
133133
134-
processors:
135-
batch:
136-
137134
exporters:
138135
tinybird:
139136
endpoint: ${OTEL_TINYBIRD_API_HOST}
@@ -156,14 +153,11 @@ service:
156153
pipelines:
157154
traces:
158155
receivers: [otlp]
159-
processors: [batch]
160156
exporters: [tinybird]
161157
metrics:
162158
receivers: [otlp]
163-
processors: [batch]
164159
exporters: [tinybird]
165160
logs:
166161
receivers: [otlp]
167-
processors: [batch]
168162
exporters: [tinybird]
169163
```

extension/encoding/skywalkingencodingextension/testdata/full-config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ receivers:
1919
exporters:
2020
debug:
2121

22-
processors:
23-
batch:
24-
2522
extensions:
2623
health_check:
2724
pprof:
@@ -35,5 +32,4 @@ service:
3532
pipelines:
3633
traces:
3734
receivers: [kafka]
38-
processors: [batch]
3935
exporters: [debug]

processor/groupbyattrsprocessor/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,11 @@ With the below configuration, the **groupbyattrs** will re-associate the spans w
134134

135135
```yaml
136136
processors:
137-
batch:
138137
groupbyattrs:
139138

140139
pipelines:
141140
traces:
142-
processors: [batch, groupbyattrs/grouping]
141+
processors: [groupbyattrs/grouping]
143142
...
144143
```
145144

0 commit comments

Comments
 (0)