Skip to content

feat: tracing improvements#379

Closed
0xForerunner wants to merge 6 commits intomainfrom
forerunner/tracing-cleanup
Closed

feat: tracing improvements#379
0xForerunner wants to merge 6 commits intomainfrom
forerunner/tracing-cleanup

Conversation

@0xForerunner
Copy link
Copy Markdown
Collaborator

Changes

- prefer inheriting event attributes from span attributes

Example
    #[instrument(level = "info")]
    fn hello(hello: &str) {
        tracing::info!("Hello World!");
    }

is formatted as

{"timestamp":"2025-07-17T19:48:25.889430Z","level":"INFO","fields":{"message":"Hello World!"},"target":"rollup_boost::tracing::tests","span":{"hello":"world","name":"hello"},"spans":[{"hello":"world","name":"hello"}]}

- set level = "info" for #[instrument]

This ensures the spans will always be created for use in metrics and logging

- rearrange tracing init

This is done so that span metrics can work independently from tracing being enabled

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rollup-boost ⬜️ Ignored (Inspect) Visit Preview Jul 22, 2025 3:21pm

Comment thread crates/rollup-boost/src/client/http.rs Outdated
Comment thread crates/rollup-boost/src/client/http.rs Outdated
Comment thread crates/rollup-boost/src/client/http.rs Outdated
0xForerunner and others added 3 commits July 21, 2025 08:30
Co-authored-by: Solar Mithril <mikawamp@gmail.com>
Co-authored-by: Solar Mithril <mikawamp@gmail.com>
Comment thread crates/flashblocks-p2p/target/rust-analyzer/metadata/sysroot/Cargo.lock Outdated
Comment thread crates/flashblocks-p2p/target/rust-analyzer/metadata/workspace/Cargo.lock Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants