-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] change config tests to unmarshal only the config for that com…
…ponent (#5895) The main motivation for this is to allow components (including tests) to not depend on the "service" configuration and be reusable without the otelcol service. Signed-off-by: Bogdan <[email protected]> Signed-off-by: Bogdan <[email protected]>
- Loading branch information
1 parent
d497997
commit f64389d
Showing
27 changed files
with
358 additions
and
680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,3 @@ | ||
receivers: | ||
nop: | ||
|
||
processors: | ||
nop: | ||
|
||
exporters: | ||
logging: | ||
logging/2: | ||
loglevel: debug | ||
sampling_initial: 10 | ||
sampling_thereafter: 50 | ||
|
||
service: | ||
pipelines: | ||
traces: | ||
receivers: [nop] | ||
processors: [nop] | ||
exporters: [logging] | ||
metrics: | ||
receivers: [nop] | ||
exporters: [logging,logging/2] | ||
loglevel: debug | ||
sampling_initial: 10 | ||
sampling_thereafter: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,25 @@ | ||
extensions: | ||
nop: | ||
|
||
receivers: | ||
nop: | ||
|
||
processors: | ||
nop: | ||
|
||
exporters: | ||
otlp: | ||
otlp/2: | ||
endpoint: "1.2.3.4:1234" | ||
compression: "gzip" | ||
tls: | ||
ca_file: /var/lib/mycert.pem | ||
timeout: 10s | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 2 | ||
queue_size: 10 | ||
retry_on_failure: | ||
enabled: true | ||
initial_interval: 10s | ||
max_interval: 60s | ||
max_elapsed_time: 10m | ||
auth: | ||
authenticator: nop | ||
headers: | ||
"can you have a . here?": "F0000000-0000-0000-0000-000000000000" | ||
header1: 234 | ||
another: "somevalue" | ||
keepalive: | ||
time: 20s | ||
timeout: 30s | ||
permit_without_stream: true | ||
balancer_name: "round_robin" | ||
|
||
service: | ||
extensions: [nop] | ||
pipelines: | ||
traces: | ||
receivers: [nop] | ||
processors: [nop] | ||
exporters: [otlp] | ||
endpoint: "1.2.3.4:1234" | ||
compression: "gzip" | ||
tls: | ||
ca_file: /var/lib/mycert.pem | ||
timeout: 10s | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 2 | ||
queue_size: 10 | ||
retry_on_failure: | ||
enabled: true | ||
initial_interval: 10s | ||
max_interval: 60s | ||
max_elapsed_time: 10m | ||
auth: | ||
authenticator: nop | ||
headers: | ||
"can you have a . here?": "F0000000-0000-0000-0000-000000000000" | ||
header1: 234 | ||
another: "somevalue" | ||
keepalive: | ||
time: 20s | ||
timeout: 30s | ||
permit_without_stream: true | ||
balancer_name: "round_robin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,23 @@ | ||
receivers: | ||
nop: | ||
|
||
processors: | ||
nop: | ||
|
||
exporters: | ||
otlphttp/2: | ||
endpoint: "https://1.2.3.4:1234" | ||
tls: | ||
ca_file: /var/lib/mycert.pem | ||
cert_file: certfile | ||
key_file: keyfile | ||
insecure: true | ||
timeout: 10s | ||
read_buffer_size: 123 | ||
write_buffer_size: 345 | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 2 | ||
queue_size: 10 | ||
retry_on_failure: | ||
enabled: true | ||
initial_interval: 10s | ||
max_interval: 60s | ||
max_elapsed_time: 10m | ||
headers: | ||
"can you have a . here?": "F0000000-0000-0000-0000-000000000000" | ||
header1: 234 | ||
another: "somevalue" | ||
compression: gzip | ||
|
||
service: | ||
pipelines: | ||
traces: | ||
receivers: [nop] | ||
processors: [nop] | ||
exporters: [otlphttp/2] | ||
endpoint: "https://1.2.3.4:1234" | ||
tls: | ||
ca_file: /var/lib/mycert.pem | ||
cert_file: certfile | ||
key_file: keyfile | ||
insecure: true | ||
timeout: 10s | ||
read_buffer_size: 123 | ||
write_buffer_size: 345 | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 2 | ||
queue_size: 10 | ||
retry_on_failure: | ||
enabled: true | ||
initial_interval: 10s | ||
max_interval: 60s | ||
max_elapsed_time: 10m | ||
headers: | ||
"can you have a . here?": "F0000000-0000-0000-0000-000000000000" | ||
header1: 234 | ||
another: "somevalue" | ||
compression: gzip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.