{"id":30052518,"url":"https://github.com/sambacha/rust-txpool","last_synced_at":"2026-04-17T08:02:00.598Z","repository":{"id":306367445,"uuid":"1025936982","full_name":"sambacha/rust-txpool","owner":"sambacha","description":"convert cast tx-pool output to correct JSON output","archived":false,"fork":false,"pushed_at":"2025-07-25T04:19:31.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-11T01:57:30.207Z","etag":null,"topics":["cast","eip2930","eip4844","eip7702","ethereum","forge","foundry-rs","reth","tx-pool","txeip2930","txpool"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sambacha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-25T03:59:40.000Z","updated_at":"2025-07-25T04:19:34.000Z","dependencies_parsed_at":"2025-07-25T09:30:56.555Z","dependency_job_id":"ada1dd2e-d365-4b57-98bb-d4fa2e4c8466","html_url":"https://github.com/sambacha/rust-txpool","commit_stats":null,"previous_names":["sambacha/rust-txpool"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sambacha/rust-txpool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Frust-txpool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Frust-txpool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Frust-txpool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Frust-txpool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sambacha","download_url":"https://codeload.github.com/sambacha/rust-txpool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Frust-txpool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31920518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cast","eip2930","eip4844","eip7702","ethereum","forge","foundry-rs","reth","tx-pool","txeip2930","txpool"],"created_at":"2025-08-07T17:01:45.587Z","updated_at":"2026-04-17T08:02:00.556Z","avatar_url":"https://github.com/sambacha.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `rust-txpool`\n\n\u003e [!WARNING]    \n\u003e Pure Generated Code, there be slooop\n\n## Metrics Collected\n\n### Type Wrapper Metrics\n- **`txpool.type_wrapper.instances`**: Count of each type wrapper found during parsing\n  - Labels: `wrapper_type` (e.g., \"TxpoolContent\", \"Transaction\", \"Eip1559\")\n  - Shows the distribution of different transaction types and structures\n\n### Performance Metrics\n- **`txpool.input.bytes`**: Size of input data in bytes\n- **`txpool.output.bytes`**: Size of output JSON in bytes\n- **`txpool.parse.duration_ms`**: Total parse time in milliseconds\n- **`txpool.content.parse_duration_ms`**: Time spent parsing txpool content specifically\n- **`txpool.field.replacements`**: Number of field name quotations performed\n\n### Error Metrics\n- **`txpool.parse.errors`**: Count of parsing errors\n  - Labels: `error_type`, `error_line`, `error_column`\n\n## Setup\n\n### Environment Variables\n- `OTLP_ENDPOINT`: The OTLP gRPC endpoint (default: `http://localhost:4317`)\n\n### Running with OpenTelemetry Collector\n\n1. Start an OpenTelemetry Collector:\n```yaml\n# otel-collector-config.yaml\nreceivers:\n  otlp:\n    protocols:\n      grpc:\n        endpoint: 0.0.0.0:4317\n\nexporters:\n  prometheus:\n    endpoint: \"0.0.0.0:8889\"\n  logging:\n    loglevel: debug\n\nservice:\n  pipelines:\n    metrics:\n      receivers: [otlp]\n      exporters: [prometheus, logging]\n    logs:\n      receivers: [otlp]\n      exporters: [logging]\n    traces:\n      receivers: [otlp]\n      exporters: [logging]\n```\n\n2. Run the collector:\n```bash\notelcol --config otel-collector-config.yaml\n```\n\n3. Run the parser:\n```bash\ncast tx-pool content | ./target/release/rust-txpool\n```\n\n4. View metrics at `http://localhost:8889/metrics`\n\n## Example Output\n\n```\n21:14:52.217 metric rust_txpool count of txpool.type_wrapper.instances is 3\n21:14:52.217 debug rust_txpool Found 3 instances of type wrapper: Transaction\n21:14:52.218 metric rust_txpool count of txpool.field.replacements is 156\n21:14:52.218 metric rust_txpool last of txpool.content.parse_duration_ms is 2\n21:14:52.218 info rust_txpool Successfully parsed txpool content in 2ms\n```\n\n## Grafana Dashboard\n\nYou can create a Grafana dashboard with these queries:\n\n1. **Type Wrapper Distribution**:\n   ```promql\n   sum by (wrapper_type) (txpool_type_wrapper_instances)\n   ```\n\n2. **Parse Performance**:\n   ```promql\n   rate(txpool_parse_duration_ms[5m])\n   ```\n\n3. **Data Volume**:\n   ```promql\n   rate(txpool_input_bytes[5m])\n   rate(txpool_output_bytes[5m])\n   ```\n\n4. **Error Rate**:\n   ```promql\n   rate(txpool_parse_errors[5m])\n   ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambacha%2Frust-txpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsambacha%2Frust-txpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambacha%2Frust-txpool/lists"}