-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(otlp): add integration tests with fixtures (#3808)
- Loading branch information
1 parent
cd06698
commit 466aaa8
Showing
18 changed files
with
53,624 additions
and
45 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
32 changes: 32 additions & 0 deletions
32
pkg/ingester/otlp/testdata/TestDifferentServiceNames_service_a_profile.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,32 @@ | ||
{ | ||
"sample_types": [ | ||
{ | ||
"type": "cpu", | ||
"unit": "nanoseconds" | ||
} | ||
], | ||
"samples": [ | ||
{ | ||
"locations": [ | ||
{ | ||
"address": "0x1100", | ||
"lines": [ | ||
"serviceA_func1[serviceA_func1]@service_a.go:10" | ||
], | ||
"mapping": "0x1000-0x2000@0x0 service-a.so()" | ||
}, | ||
{ | ||
"address": "0x1200", | ||
"lines": [ | ||
"serviceA_func2[serviceA_func2]@service_a.go:20" | ||
], | ||
"mapping": "0x1000-0x2000@0x0 service-a.so()" | ||
} | ||
], | ||
"values": "1000000000" | ||
} | ||
], | ||
"time_nanos": "239", | ||
"duration_nanos": "10000000000", | ||
"period": "10000000" | ||
} |
32 changes: 32 additions & 0 deletions
32
pkg/ingester/otlp/testdata/TestDifferentServiceNames_service_b_profile.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,32 @@ | ||
{ | ||
"sample_types": [ | ||
{ | ||
"type": "cpu", | ||
"unit": "nanoseconds" | ||
} | ||
], | ||
"samples": [ | ||
{ | ||
"locations": [ | ||
{ | ||
"address": "0x2100", | ||
"lines": [ | ||
"serviceB_func1[serviceB_func1]@service_b.go:30" | ||
], | ||
"mapping": "0x2000-0x3000@0x0 service-b.so()" | ||
}, | ||
{ | ||
"address": "0x2200", | ||
"lines": [ | ||
"serviceB_func2[serviceB_func2]@service_b.go:40" | ||
], | ||
"mapping": "0x2000-0x3000@0x0 service-b.so()" | ||
} | ||
], | ||
"values": "2000000000" | ||
} | ||
], | ||
"time_nanos": "239", | ||
"duration_nanos": "10000000000", | ||
"period": "10000000" | ||
} |
32 changes: 32 additions & 0 deletions
32
pkg/ingester/otlp/testdata/TestDifferentServiceNames_unknown_profile.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,32 @@ | ||
{ | ||
"sample_types": [ | ||
{ | ||
"type": "cpu", | ||
"unit": "nanoseconds" | ||
} | ||
], | ||
"samples": [ | ||
{ | ||
"locations": [ | ||
{ | ||
"address": "0xef0", | ||
"lines": [ | ||
"serviceC_func3[serviceC_func3]@service_c.go:50" | ||
], | ||
"mapping": "0x4000-0x5000@0x0 service-c.so()" | ||
}, | ||
{ | ||
"address": "0xef0", | ||
"lines": [ | ||
"serviceC_func3[serviceC_func3]@service_c.go:50" | ||
], | ||
"mapping": "0x4000-0x5000@0x0 service-c.so()" | ||
} | ||
], | ||
"values": "7000000000" | ||
} | ||
], | ||
"time_nanos": "239", | ||
"duration_nanos": "10000000000", | ||
"period": "10000000" | ||
} |
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,53 @@ | ||
{ | ||
"sample_types": [ | ||
{ | ||
"type": "samples", | ||
"unit": "ms" | ||
} | ||
], | ||
"samples": [ | ||
{ | ||
"locations": [ | ||
{ | ||
"address": "0x1e", | ||
"lines": [ | ||
"firefox.so 0x1e[]@:0" | ||
], | ||
"mapping": "0x1000-0x1000@0x0 firefox.so()" | ||
}, | ||
{ | ||
"address": "0x2e", | ||
"lines": [ | ||
"firefox.so 0x2e[]@:0" | ||
], | ||
"mapping": "0x1000-0x1000@0x0 firefox.so()" | ||
} | ||
], | ||
"values": "239", | ||
"labels": "process=firefox" | ||
}, | ||
{ | ||
"locations": [ | ||
{ | ||
"address": "0x3e", | ||
"lines": [ | ||
"chrome.so 0x3e[]@:0" | ||
], | ||
"mapping": "0x1000-0x1000@0x0 chrome.so()" | ||
}, | ||
{ | ||
"address": "0x4e", | ||
"lines": [ | ||
"chrome.so 0x4e[]@:0" | ||
], | ||
"mapping": "0x1000-0x1000@0x0 chrome.so()" | ||
} | ||
], | ||
"values": "61423", | ||
"labels": "process=chrome" | ||
} | ||
], | ||
"time_nanos": "239", | ||
"duration_nanos": "10000000000", | ||
"period": "0" | ||
} |
32 changes: 32 additions & 0 deletions
32
pkg/ingester/otlp/testdata/TestSymbolizedFunctionNames.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,32 @@ | ||
{ | ||
"sample_types": [ | ||
{ | ||
"type": "samples", | ||
"unit": "ms" | ||
} | ||
], | ||
"samples": [ | ||
{ | ||
"locations": [ | ||
{ | ||
"address": "0x1e0", | ||
"lines": [ | ||
"file1.so 0x1e0[]@:0" | ||
], | ||
"mapping": "0x1000-0x1000@0x0 file1.so()" | ||
}, | ||
{ | ||
"address": "0x2f0", | ||
"lines": [ | ||
"file1.so 0x2f0[]@:0" | ||
], | ||
"mapping": "0x1000-0x1000@0x0 file1.so()" | ||
} | ||
], | ||
"values": "239" | ||
} | ||
], | ||
"time_nanos": "239", | ||
"duration_nanos": "10000000000", | ||
"period": "0" | ||
} |
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.