Skip to content

Commit

Permalink
update testdata with new expected results
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofgyuracz committed Jul 10, 2024
1 parent 8b40322 commit 6ba58ec
Show file tree
Hide file tree
Showing 26 changed files with 1,301 additions and 798 deletions.
24 changes: 14 additions & 10 deletions connector/countconnector/testdata/logs/condition_and_attribute.yaml
Original file line number Diff line number Diff line change
@@ -1,61 +1,65 @@
resourceMetrics:
- resource:
attributes:
- key: resource.required
value:
stringValue: foo
- key: resource.optional
value:
stringValue: bar
- key: resource.required
value:
stringValue: foo
scopeMetrics:
- metrics:
- description: Log count by attribute if ...
name: log.count.if.by_attr
sum:
aggregationTemporality: 1
dataPoints:
- asInt: "1"
timeUnixNano: "1000000"
- asInt: "2"
attributes:
- key: log.required
value:
stringValue: foo
timeUnixNano: "1678390948399018000"
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.required
value:
stringValue: notfoo
timeUnixNano: "1678390948399018000"
timeUnixNano: "1000000"
isMonotonic: true
scope:
name: otelcol/countconnector
- resource:
attributes:
- key: resource.required
value:
stringValue: foo
- key: resource.optional
value:
stringValue: notbar
- key: resource.required
value:
stringValue: foo
scopeMetrics:
- metrics:
- description: Log count by attribute if ...
name: log.count.if.by_attr
sum:
aggregationTemporality: 1
dataPoints:
- asInt: "1"
timeUnixNano: "1000000"
- asInt: "2"
attributes:
- key: log.required
value:
stringValue: foo
timeUnixNano: "1678390948399021000"
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.required
value:
stringValue: notfoo
timeUnixNano: "1678390948399021000"
timeUnixNano: "1000000"
isMonotonic: true
scope:
name: otelcol/countconnector
132 changes: 78 additions & 54 deletions connector/countconnector/testdata/logs/default_attribute_value.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
resourceMetrics:
- resource:
attributes:
- key: resource.required
value:
stringValue: foo
- key: resource.optional
value:
stringValue: bar
- resource: {}
scopeMetrics:
- metrics:
- description: Log count by attribute with default
Expand All @@ -16,42 +9,45 @@ resourceMetrics:
dataPoints:
- asInt: "1"
attributes:
- key: log.required
value:
stringValue: foo
- key: log.optional
value:
stringValue: bar
timeUnixNano: "1678390948398365000"
stringValue: other
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.optional
value:
stringValue: bar
- key: log.required
value:
stringValue: foo
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.optional
value:
stringValue: notbar
timeUnixNano: "1678390948398365000"
- asInt: "1"
attributes:
- key: log.required
value:
stringValue: notfoo
stringValue: foo
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.optional
value:
stringValue: other
timeUnixNano: "1678390948398365000"
- key: log.required
value:
stringValue: notfoo
timeUnixNano: "1000000"
isMonotonic: true
scope:
name: otelcol/countconnector
- resource:
attributes:
- key: resource.required
value:
stringValue: foo
- key: resource.optional
value:
stringValue: notbar
stringValue: notfoo
scopeMetrics:
- metrics:
- description: Log count by attribute with default
Expand All @@ -61,39 +57,48 @@ resourceMetrics:
dataPoints:
- asInt: "1"
attributes:
- key: log.required
value:
stringValue: foo
- key: log.optional
value:
stringValue: bar
timeUnixNano: "1678390948398368000"
stringValue: other
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.optional
value:
stringValue: bar
- key: log.required
value:
stringValue: foo
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.optional
value:
stringValue: notbar
timeUnixNano: "1678390948398368000"
- asInt: "1"
attributes:
- key: log.required
value:
stringValue: notfoo
stringValue: foo
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.optional
value:
stringValue: other
timeUnixNano: "1678390948398368000"
- key: log.required
value:
stringValue: notfoo
timeUnixNano: "1000000"
isMonotonic: true
scope:
name: otelcol/countconnector
- resource:
attributes:
- key: resource.optional
value:
stringValue: bar
- key: resource.required
value:
stringValue: notfoo
stringValue: foo
scopeMetrics:
- metrics:
- description: Log count by attribute with default
Expand All @@ -103,35 +108,48 @@ resourceMetrics:
dataPoints:
- asInt: "1"
attributes:
- key: log.required
value:
stringValue: foo
- key: log.optional
value:
stringValue: bar
timeUnixNano: "1678390948398371000"
stringValue: other
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.optional
value:
stringValue: bar
- key: log.required
value:
stringValue: foo
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.optional
value:
stringValue: notbar
timeUnixNano: "1678390948398371000"
- asInt: "1"
attributes:
- key: log.required
value:
stringValue: notfoo
stringValue: foo
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.optional
value:
stringValue: other
timeUnixNano: "1678390948398371000"
- key: log.required
value:
stringValue: notfoo
timeUnixNano: "1000000"
isMonotonic: true
scope:
name: otelcol/countconnector
- resource: {}
- resource:
attributes:
- key: resource.optional
value:
stringValue: notbar
- key: resource.required
value:
stringValue: foo
scopeMetrics:
- metrics:
- description: Log count by attribute with default
Expand All @@ -141,31 +159,37 @@ resourceMetrics:
dataPoints:
- asInt: "1"
attributes:
- key: log.required
value:
stringValue: foo
- key: log.optional
value:
stringValue: bar
timeUnixNano: "1678390948398373000"
stringValue: other
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.optional
value:
stringValue: bar
- key: log.required
value:
stringValue: foo
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.optional
value:
stringValue: notbar
timeUnixNano: "1678390948398373000"
- asInt: "1"
attributes:
- key: log.required
value:
stringValue: notfoo
stringValue: foo
timeUnixNano: "1000000"
- asInt: "1"
attributes:
- key: log.optional
value:
stringValue: other
timeUnixNano: "1678390948398373000"
- key: log.required
value:
stringValue: notfoo
timeUnixNano: "1000000"
isMonotonic: true
scope:
name: otelcol/countconnector
Loading

0 comments on commit 6ba58ec

Please sign in to comment.