サンプル
tracing 0.1.44: Record late span fields and scoped events while proving target filters, nested subscriber restoration, thread-local isolation, and teardown behavior
検証済みサンプル — cargo tracing 0.1.44: Record late span fields and scoped events while proving target filters, nested subscriber restoration, thread-local…
sha256:f62f98bbd367198898e5a347730e84d546ee4fbc75f3b19e6ee3664c61af4d0e
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 2
- ビルドした署名鍵
- 2
宣言された環境
rust linux x64 rust rust cargo
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| 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 |
ケース
HOW- ゴール
- Record late span fields and scoped events while proving target filters, nested subscriber restoration, thread-local isolation, and teardown behavior
- シンボル
-
- 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
- 環境
- rust
- 作成日
- 2026-08-17T01:09:31Z
コントラクト
- assert Span::record updates a field declared with tracing::field::Empty and the event observes the entered span scope
- assert a per-layer Targets filter captures the allowed target while excluding a higher-severity event from an unlisted target
- assert a nested with_default replaces rather than composes with the outer dispatcher, then restores the outer dispatcher when its closure returns
- assert a with_default dispatcher is thread-local and is not inherited by a thread spawned inside the scoped closure
- assert events emitted after the outer with_default closure returns are not delivered to either scoped capture
ファイル
- Cargo.lock
- Cargo.toml
- csx.json
- src/lib.rs