server: export DB from session
@zeroXbrock がすでに取り組んでいます。
2026年4月28日 から。
評価
この issue はまだ評価されていません。
説明
Is your feature request related to a problem? Please describe.
Each session in the RPC server has its own DB (in-memory SQLite). When sessions are terminated/removed, we have no way of reading the metrics we collected.
Possible solutions:
Not sure of the ideal solution yet, may have to try a few ideas. This is a working PR, input welcome.
idea 1: serve the session DB as structured JSON
Add an RPC method getDb(session_id) that serializes the contents of the DB into JSON.
It may be possible to avoid strict typing (which would make it very cumbersome to update the DB schema) by directly serializing the DB to JSON. Not 100% sure about this, though. If it's not possible to serialize directly, this isn't worth the effort.
idea 2: host an endpoint that serves a .db file download
This is pretty straightforward, but not a very good UX.
Note: Our JSON-RPC server struct holds the sessions, which prevents other servers (e.g. a REST server to serve files) from getting session data. To do this, we'd need to decouple sessions from the RPC server; make a new struct for sessions with a simplified API, then call that from the RPC server. Then other servers could get access to the data as well.
idea 3: host an API to query the DB
We could implement the same kind of things that report does (calculate metrics, format data for human/UI consumption) but we'd need to implement another API for the report functions we want. These are currently implemented directly in the report function.
Another idea is to use something like datasette. This would host an API that allows you to read the DB tables directly, over a web interface, with the option to export data in multiple formats.
It may be worthwhile to use both approaches; datasette for specific DB inquiries, and extra RPC endpoints for simple metrics collection.
- 主要言語
- Rust
- スター
- 144
- フォーク
- 58
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
flashbots/contender のほかの issue
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 62/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
flashbots/contender の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
open-telemetry/weaver#1917 ·
メンテナーはふだん 2 日以内に返信
-
bug host P3 web
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jphacks/kz_2613#589 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation pkg:sdk project
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
priority middle
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
KATO-Hiro/AtCoderClans#13029 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
RustCrypto/formats#2544 ·
メンテナーはふだん 1 日以内に返信