-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor integration tests and add metrics test
- Loading branch information
1 parent
ce550e3
commit d5dc9ef
Showing
21 changed files
with
902 additions
and
357 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
*.json |
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 @@ | ||
Output from the otel-collector goes here. |
133 changes: 133 additions & 0 deletions
133
opentelemetry-otlp/tests/integration_test/expected/different_metrics.json
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,133 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"resource": { | ||
"attributes": [ | ||
{ | ||
"key": "service.name", | ||
"value": { | ||
"stringValue": "metrics-integration-test" | ||
} | ||
} | ||
] | ||
}, | ||
"scopeMetrics": [ | ||
{ | ||
"scope": { | ||
"name": "meter" | ||
}, | ||
"metrics": [ | ||
{ | ||
"name": "counter_u64", | ||
"sum": { | ||
"dataPoints": [ | ||
{ | ||
"attributes": [ | ||
{ | ||
"key": "mykey1", | ||
"value": { | ||
"stringValue": "mydifferentval" | ||
} | ||
}, | ||
{ | ||
"key": "mykey2", | ||
"value": { | ||
"stringValue": "myvalue2" | ||
} | ||
} | ||
], | ||
"startTimeUnixNano": "1734094309366798000", | ||
"timeUnixNano": "1734094317871514000", | ||
"asInt": "15" | ||
} | ||
], | ||
"aggregationTemporality": 2, | ||
"isMonotonic": true | ||
} | ||
}, | ||
{ | ||
"name": "example_histogram", | ||
"histogram": { | ||
"dataPoints": [ | ||
{ | ||
"attributes": [ | ||
{ | ||
"key": "mykey3", | ||
"value": { | ||
"stringValue": "myvalue4" | ||
} | ||
} | ||
], | ||
"startTimeUnixNano": "1734094309366875000", | ||
"timeUnixNano": "1734094317871537000", | ||
"count": "1", | ||
"sum": 42, | ||
"bucketCounts": [ | ||
"0", | ||
"0", | ||
"0", | ||
"0", | ||
"1", | ||
"0", | ||
"0", | ||
"0", | ||
"0", | ||
"0", | ||
"0", | ||
"0", | ||
"0", | ||
"0", | ||
"0", | ||
"0" | ||
], | ||
"explicitBounds": [ | ||
0, | ||
5, | ||
10, | ||
25, | ||
50, | ||
75, | ||
100, | ||
250, | ||
500, | ||
750, | ||
1000, | ||
2500, | ||
5000, | ||
7500, | ||
10000 | ||
], | ||
"min": 42, | ||
"max": 42 | ||
} | ||
], | ||
"aggregationTemporality": 2 | ||
} | ||
}, | ||
{ | ||
"name": "example_up_down_counter", | ||
"sum": { | ||
"dataPoints": [ | ||
{ | ||
"attributes": [ | ||
{ | ||
"key": "mykey5", | ||
"value": { | ||
"stringValue": "myvalue5" | ||
} | ||
} | ||
], | ||
"startTimeUnixNano": "1734094309366941000", | ||
"timeUnixNano": "1734094317871548000", | ||
"asInt": "-1" | ||
} | ||
], | ||
"aggregationTemporality": 2 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
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.