CodeSampleX

Sample

tracing 0.1.44: Record late span fields and scoped events while proving target filters, nested subscriber restoration, thread-local isolation, and teardown behavior

Verified sample for cargo tracing 0.1.44: Record late span fields and scoped events while proving target filters, nested subscriber restoration, thread-local…

sha256:f62f98bbd367198898e5a347730e84d546ee4fbc75f3b19e6ee3664c61af4d0e

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
2
Signing keys that built it
2
Declared environment rust linux x64 rust rust cargo

Verification-run environments

Environment Contract Stages Run
rust 1 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · cargo@1
2026-08-17
rust 1 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · cargo@1
2026-08-18

Case

HOW
Goal
Record late span fields and scoped events while proving target filters, nested subscriber restoration, thread-local isolation, and teardown behavior
Packages
Symbols
  • tracing::span!
  • tracing::event!
  • tracing::Span::record
  • tracing::subscriber::with_default
  • tracing_subscriber::filter::Targets
  • tracing_subscriber::Layer::with_filter
  • tracing_subscriber::layer::Context::event_scope
Environment
rust
Created
2026-08-17T01:09:31Z

Contract

  1. assert Span::record updates a field declared with tracing::field::Empty and the event observes the entered span scope
  2. assert a per-layer Targets filter captures the allowed target while excluding a higher-severity event from an unlisted target
  3. assert a nested with_default replaces rather than composes with the outer dispatcher, then restores the outer dispatcher when its closure returns
  4. assert a with_default dispatcher is thread-local and is not inherited by a thread spawned inside the scoped closure
  5. assert events emitted after the outer with_default closure returns are not delivered to either scoped capture

Files

  • Cargo.lock
  • Cargo.toml
  • csx.json
  • src/lib.rs

Download the source artifact (tar.gz)

Origin Seeder

csx-seed