Skip to content

Commit 8156f80

Browse files
chore: add shared vscode launch config (#20103)
1 parent 9bd5d6a commit 8156f80

File tree

3 files changed

+80
-4
lines changed

3 files changed

+80
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ _shared-workflows-dockerhub-login
5353

5454
# vscode
5555
.vscode
56+
!.vscode/launch.json
5657

5758
# nix
5859
nix/result

.vscode/launch.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug Specified Test",
6+
"type": "go",
7+
"request": "launch",
8+
"mode": "test",
9+
"program": "${fileDirname}",
10+
"args": [
11+
"-test.run",
12+
"^${input:testName}$"
13+
],
14+
"showLog": true,
15+
"trace": "verbose"
16+
},
17+
{
18+
"name": "Attach to Process",
19+
"type": "go",
20+
"request": "attach",
21+
"mode": "local",
22+
"processId": "${command:pickProcess}"
23+
},
24+
{
25+
"name": "Debug Loki",
26+
"type": "go",
27+
"request": "launch",
28+
"mode": "debug",
29+
"program": "${workspaceFolder}/cmd/loki",
30+
"args": [
31+
"-config.file=${workspaceFolder}/cmd/loki/loki-local-config.yaml"
32+
],
33+
"showLog": true
34+
},
35+
{
36+
"name": "Debug Loki (Custom Config)",
37+
"type": "go",
38+
"request": "launch",
39+
"mode": "debug",
40+
"program": "${workspaceFolder}/cmd/loki",
41+
"args": [
42+
"-config.file=${input:configFile}"
43+
],
44+
"showLog": true
45+
},
46+
{
47+
"name": "Debug Remote Process (dlv connect)",
48+
"type": "go",
49+
"request": "attach",
50+
"mode": "remote",
51+
"remotePath": "${workspaceFolder}",
52+
"port": "${input:port}",
53+
"host": "localhost"
54+
}
55+
],
56+
"inputs": [
57+
{
58+
"id": "configFile",
59+
"type": "promptString",
60+
"description": "Path to Loki config file",
61+
"default": "${workspaceFolder}/cmd/loki/loki-local-config.yaml"
62+
},
63+
{
64+
"id": "testName",
65+
"type": "promptString",
66+
"description": "Test name to run"
67+
},
68+
{
69+
"id": "port",
70+
"type": "promptString",
71+
"description": "Port to connect to",
72+
"default": 18001
73+
}
74+
]
75+
}
76+

pkg/logql/bench/config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ storage_config:
7878
filesystem:
7979
dir: ${PWD}/pkg/logql/bench/data/storage
8080

81-
querier:
82-
engine_v2:
83-
enable: true
84-
batch_size: 8192
81+
query_engine:
82+
enable: true
83+
batch_size: 8192
8584

8685
query_range:
8786
cache_results: false

0 commit comments

Comments
 (0)