Beispiel
Raw SDK samplers passed to WithSampler strip the ParentBased decorator, dropping incoming remote sampled spans or sampling unsampled fragments unless explicitly wrapped in ParentBased
sha256:22889097515d91070760080551a1b9e99943837dd4e491fb6ab40c14b0256923
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Fall
- Ziel
- Raw SDK samplers passed to WithSampler strip the ParentBased decorator, dropping incoming remote sampled spans or sampling unsampled fragments unless explicitly wrapped in ParentBased HOW
- Pakete
- go.opentelemetry.io/otel/sdk v1.35.0 go.opentelemetry.io/otel/trace v1.35.0
- Umgebung
- go
- Erstellt
- 2026-08-16T07:27:30Z
Contract
- assert raw NeverSample drops child spans even when remote parent context is sampled
- assert raw AlwaysSample forces child span recording even when remote parent context is unsampled
- assert ParentBased(NeverSample) drops unparented root spans
- assert ParentBased(NeverSample) records and exports child spans when remote parent is sampled
- assert ParentBased(NeverSample) drops child spans when remote parent is unsampled
Dateien
- NOTES.md
- csx.json
- go.mod
- go.sum
- sampler_test.go
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-16 · ed25519:d91480838ac982c9