Skip to content

Commit b1a7e34

Browse files
committed
fix another set of tests related to otlp conversion and help options
1 parent b99bacb commit b1a7e34

5 files changed

Lines changed: 6 additions & 29 deletions

File tree

cmd/pyroscope/help-all.txt.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,8 @@ Usage of ./pyroscope:
631631
Maximum age of cached debug info (default 168h0m0s)
632632
-query-frontend.symbolizer.debuginfod-url string
633633
URL of the debuginfod server (default "https://debuginfod.elfutils.org")
634+
-query-frontend.symbolizer.symbol-cache-size int
635+
Maximum number of entries in the symbol cache (default 100000)
634636
-query-scheduler.grpc-client-config.backoff-max-period duration
635637
Maximum delay when backing off. (default 10s)
636638
-query-scheduler.grpc-client-config.backoff-min-period duration

cmd/pyroscope/help.txt.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ Usage of ./pyroscope:
179179
Maximum age of cached debug info (default 168h0m0s)
180180
-query-frontend.symbolizer.debuginfod-url string
181181
URL of the debuginfod server (default "https://debuginfod.elfutils.org")
182+
-query-frontend.symbolizer.symbol-cache-size int
183+
Maximum number of entries in the symbol cache (default 100000)
182184
-query-scheduler.max-outstanding-requests-per-tenant int
183185
Maximum number of outstanding requests per tenant per query-scheduler. In-flight requests above this limit will fail with HTTP response status code 429. (default 100)
184186
-query-scheduler.ring.consul.hostname string

pkg/ingester/otlp/testdata/TestConversionOffCpu.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,10 @@
1010
"locations": [
1111
{
1212
"address": "0x1e0",
13-
"lines": [
14-
"file1.so 0x1e0[]@:0"
15-
],
1613
"mapping": "0x1000-0x1000@0x0 file1.so()"
1714
},
1815
{
1916
"address": "0x2f0",
20-
"lines": [
21-
"file1.so 0x2f0[]@:0"
22-
],
2317
"mapping": "0x1000-0x1000@0x0 file1.so()"
2418
}
2519
],
@@ -29,9 +23,6 @@
2923
"locations": [
3024
{
3125
"address": "0x3f0",
32-
"lines": [
33-
"file1.so 0x3f0[]@:0"
34-
],
3526
"mapping": "0x1000-0x1000@0x0 file1.so()"
3627
}
3728
],
@@ -41,4 +32,4 @@
4132
"time_nanos": "239",
4233
"duration_nanos": "10000000000",
4334
"period": "0"
44-
}
35+
}

pkg/ingester/otlp/testdata/TestSampleAttributes.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,10 @@
1010
"locations": [
1111
{
1212
"address": "0x1e",
13-
"lines": [
14-
"firefox.so 0x1e[]@:0"
15-
],
1613
"mapping": "0x1000-0x1000@0x0 firefox.so()"
1714
},
1815
{
1916
"address": "0x2e",
20-
"lines": [
21-
"firefox.so 0x2e[]@:0"
22-
],
2317
"mapping": "0x1000-0x1000@0x0 firefox.so()"
2418
}
2519
],
@@ -30,16 +24,10 @@
3024
"locations": [
3125
{
3226
"address": "0x3e",
33-
"lines": [
34-
"chrome.so 0x3e[]@:0"
35-
],
3627
"mapping": "0x1000-0x1000@0x0 chrome.so()"
3728
},
3829
{
3930
"address": "0x4e",
40-
"lines": [
41-
"chrome.so 0x4e[]@:0"
42-
],
4331
"mapping": "0x1000-0x1000@0x0 chrome.so()"
4432
}
4533
],

pkg/ingester/otlp/testdata/TestSymbolizedFunctionNames.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,10 @@
1010
"locations": [
1111
{
1212
"address": "0x1e0",
13-
"lines": [
14-
"file1.so 0x1e0[]@:0"
15-
],
1613
"mapping": "0x1000-0x1000@0x0 file1.so()"
1714
},
1815
{
1916
"address": "0x2f0",
20-
"lines": [
21-
"file1.so 0x2f0[]@:0"
22-
],
2317
"mapping": "0x1000-0x1000@0x0 file1.so()"
2418
}
2519
],
@@ -29,4 +23,4 @@
2923
"time_nanos": "239",
3024
"duration_nanos": "10000000000",
3125
"period": "0"
32-
}
26+
}

0 commit comments

Comments
 (0)