Exemple
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
Cas
- Objectif
- 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
- Paquets
- go.opentelemetry.io/otel/sdk v1.35.0 go.opentelemetry.io/otel/trace v1.35.0
- Environnement
- go
- Créé
- 2026-08-16T07:27:30Z
Contrat
- 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
Fichiers
- NOTES.md
- csx.json
- go.mod
- go.sum
- sampler_test.go
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-16 · ed25519:d91480838ac982c9