Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"recommendations": [
"charliermarsh.ruff"
"charliermarsh.ruff",
"vadimcn.vscode-lldb"
]
}
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@
"${file}"
],
"console": "integratedTerminal",
},
{
"name": "Debug Rust Consumer (eap_items)",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/.venv/bin/python",
"args": [
"${workspaceFolder}/.venv/bin/snuba",
"rust-consumer",
"--storage=eap_items",
"--consumer-group=eap_items_group",
"--auto-offset-reset=latest",
"--no-strict-offset-reset",
"--use-rust-processor",
"--enforce-schema"
],
"cwd": "${workspaceFolder}",
"sourceLanguages": ["rust"]
}
]
}
11 changes: 11 additions & 0 deletions rust_snuba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,14 @@ The goal of this project is to provide a feature complete Rust equivalent to the

1. Run `make watch-rust-snuba`.
2. `snuba rust-consumer` can now be used to run a simple Rust consumer that currently does not insert into clickhouse.

**Debug**
To run with a debugger
1. ensure you have CodeLLDB vscode extension (vadimcn.vscode-lldb)
2. `make watch-rust-snuba` -- build & watch rust
3. go to the vscode debug tab and find the target (we only have eap items at this point)
4. you can use `scripts/generate_items.py` to publish to the topic

## Troubleshooting
* Make sure `devservices up`
* If it says you are missing the kafka topic: `snuba bootstrap --force`
Loading