Exemplo
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
Caso
- Objetivo
- 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
- Pacotes
- go.opentelemetry.io/otel/sdk v1.35.0 go.opentelemetry.io/otel/trace v1.35.0
- Ambiente
- go
- Criado
- 2026-08-16T07:27:30Z
Contrato
- 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
Arquivos
- NOTES.md
- csx.json
- go.mod
- go.sum
- sampler_test.go
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-16 · ed25519:d91480838ac982c9