Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
dev: improve tracing (#1309)
Browse files Browse the repository at this point in the history
* remove sequencer crate

* add otel

* clean tracing

* add tracing to database and provider

* add metric on processing of pending transactions

* lint

* fmt

* fix comments
  • Loading branch information
greged93 authored Jul 23, 2024
1 parent 291a2c0 commit 9e38768
Show file tree
Hide file tree
Showing 34 changed files with 466 additions and 5,432 deletions.
212 changes: 211 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 24 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ rust-version = "1.79"
[lints]
rust.missing_debug_implementations = "warn"
rust.unreachable_pub = "warn"
rustdoc.all = "warn"
rust.unused_must_use = "deny"
rust.rust_2018_idioms = { level = "deny", priority = -1 }
rustdoc.all = "warn"

[lints.clippy]
# all lints that are on by default (correctness, suspicious, style, complexity, perf)
Expand Down Expand Up @@ -73,32 +73,43 @@ reth-evm-ethereum = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1
reth-node-api = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false }
revm-inspectors = "0.4"

# Error
eyre = { version = "0.6", default-features = false }
thiserror = { version = "1", default-features = false }

# Futures
async-trait = { version = "0.1", default-features = false }
futures = { version = "0.3", default-features = false }
tokio = { version = "1", features = ["macros"] }

# Network
tower = { version = "0.4", default-features = false }
tower-http = { version = "0.5", features = ["cors"] }
url = { version = "2.5", default-features = false }

# Serde
serde = { version = "1", default-features = false, features = ["derive"] }
serde_json = { version = "1", default-features = false }

# Tracing
tracing = { version = "0.1", default-features = false }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
opentelemetry = { version = "0.23.0", features = ["metrics"] }
opentelemetry-otlp = { version = "0.16.0", features = ["trace", "tonic", "metrics"] }
opentelemetry_sdk = { version = "0.23.0", features = ["trace", "metrics", "rt-tokio"] }
tracing-opentelemetry = "0.24.0"


# Others
async-trait = { version = "0.1", default-features = false }
auto_impl = { version = "1", default-features = false }
bytes = { version = "1.6", default-features = false }
dotenvy = { version = "0.15", default-features = false }
eyre = { version = "0.6", default-features = false }

futures = { version = "0.3", default-features = false }
itertools = { version = "0.13", default-features = false }
lazy_static = { version = "1", default-features = false }
log = { version = "0.4", default-features = false }
mongodb = { version = "3.0", default-features = false, features = [
"rustls-tls",
"compat-3-0-0",
] }
thiserror = { version = "1", default-features = false }
tokio = { version = "1", features = ["macros"] }
tower = { version = "0.4", default-features = false }
tower-http = { version = "0.5", features = ["cors"] }
tracing = { version = "0.1", default-features = false }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
url = { version = "2.5", default-features = false }

# Prometheus
prometheus = { version = "0.13", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ run-dev: load-env
RUST_LOG=trace cargo run --bin kakarot-rpc

install-katana:
cargo install --git https://github.com/dojoengine/dojo --locked --tag v1.0.0-alpha.2 katana
cargo install --git https://github.com/dojoengine/dojo --locked --tag v0.7.3 katana

katana-genesis: install-katana
cargo run --bin katana_genesis --features testing
Expand Down
Loading

0 comments on commit 9e38768

Please sign in to comment.