-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore][exporter/datadog] Move integration test configs to files (#33832
) Move the test configs from hard-coded strings to yaml files. Also set the fake server URL via env vars, and remove batch processor to speed up the tests. Makes it a bit easier to read the configs and add more tests.
- Loading branch information
Showing
4 changed files
with
116 additions
and
135 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
58 changes: 58 additions & 0 deletions
58
exporter/datadogexporter/integrationtest/integration_test_config.yaml
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
|
||
receivers: | ||
otlp: | ||
protocols: | ||
http: | ||
endpoint: "localhost:4318" | ||
grpc: | ||
endpoint: "localhost:4317" | ||
|
||
processors: | ||
tail_sampling: | ||
decision_wait: 1s | ||
policies: [ | ||
{ | ||
name: sample_flag, | ||
type: boolean_attribute, | ||
boolean_attribute: { key: sampled, value: true }, | ||
} | ||
] | ||
|
||
connectors: | ||
datadog/connector: | ||
traces: | ||
compute_stats_by_span_kind: true | ||
peer_tags_aggregation: true | ||
peer_tags: ["extra_peer_tag"] | ||
|
||
exporters: | ||
debug: | ||
verbosity: detailed | ||
datadog: | ||
api: | ||
key: "key" | ||
tls: | ||
insecure_skip_verify: true | ||
host_metadata: | ||
enabled: false | ||
traces: | ||
endpoint: ${env:SERVER_URL} | ||
trace_buffer: 10 | ||
metrics: | ||
endpoint: ${env:SERVER_URL} | ||
|
||
service: | ||
telemetry: | ||
metrics: | ||
level: none | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
exporters: [datadog/connector] | ||
traces/2: # this pipeline uses sampling | ||
receivers: [datadog/connector] | ||
processors: [tail_sampling] | ||
exporters: [datadog, debug] | ||
metrics: | ||
receivers: [datadog/connector] | ||
exporters: [datadog, debug] |
45 changes: 45 additions & 0 deletions
45
exporter/datadogexporter/integrationtest/integration_test_toplevel_config.yaml
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
receivers: | ||
otlp: | ||
protocols: | ||
http: | ||
endpoint: "localhost:4318" | ||
grpc: | ||
endpoint: "localhost:4317" | ||
|
||
connectors: | ||
datadog/connector: | ||
traces: | ||
compute_top_level_by_span_kind: true | ||
|
||
exporters: | ||
debug: | ||
verbosity: detailed | ||
datadog: | ||
api: | ||
key: "key" | ||
tls: | ||
insecure_skip_verify: true | ||
host_metadata: | ||
enabled: false | ||
traces: | ||
endpoint: ${env:SERVER_URL} | ||
trace_buffer: 10 | ||
compute_top_level_by_span_kind: true | ||
metrics: | ||
endpoint: ${env:SERVER_URL} | ||
|
||
service: | ||
telemetry: | ||
metrics: | ||
level: none | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
exporters: [datadog/connector] | ||
traces/2: | ||
receivers: [datadog/connector] | ||
exporters: [datadog, debug] | ||
metrics: | ||
receivers: [datadog/connector] | ||
exporters: [datadog, debug] |