forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Migrate golden files from JSON to YAML (open-telemetry#20438)
This change updates coreinternal/golden helpers to use YAML format for writing/reading pdata structs and migrate all existing files from json to yaml. This improves human readability of the golden data files
- Loading branch information
Showing
811 changed files
with
72,358 additions
and
129,900 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
126 changes: 0 additions & 126 deletions
126
connector/countconnector/testdata/logs/condition_and_attribute.json
This file was deleted.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
connector/countconnector/testdata/logs/condition_and_attribute.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,61 @@ | ||
resourceMetrics: | ||
- resource: | ||
attributes: | ||
- key: resource.required | ||
value: | ||
stringValue: foo | ||
- key: resource.optional | ||
value: | ||
stringValue: bar | ||
scopeMetrics: | ||
- metrics: | ||
- description: Log count by attribute if ... | ||
name: log.count.if.by_attr | ||
sum: | ||
aggregationTemporality: 1 | ||
dataPoints: | ||
- asInt: "2" | ||
attributes: | ||
- key: log.required | ||
value: | ||
stringValue: foo | ||
timeUnixNano: "1678390948399018000" | ||
- asInt: "1" | ||
attributes: | ||
- key: log.required | ||
value: | ||
stringValue: notfoo | ||
timeUnixNano: "1678390948399018000" | ||
isMonotonic: true | ||
scope: | ||
name: otelcol/countconnector | ||
- resource: | ||
attributes: | ||
- key: resource.required | ||
value: | ||
stringValue: foo | ||
- key: resource.optional | ||
value: | ||
stringValue: notbar | ||
scopeMetrics: | ||
- metrics: | ||
- description: Log count by attribute if ... | ||
name: log.count.if.by_attr | ||
sum: | ||
aggregationTemporality: 1 | ||
dataPoints: | ||
- asInt: "2" | ||
attributes: | ||
- key: log.required | ||
value: | ||
stringValue: foo | ||
timeUnixNano: "1678390948399021000" | ||
- asInt: "1" | ||
attributes: | ||
- key: log.required | ||
value: | ||
stringValue: notfoo | ||
timeUnixNano: "1678390948399021000" | ||
isMonotonic: true | ||
scope: | ||
name: otelcol/countconnector |
Oops, something went wrong.