Пример
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
Кейс
- Цель
- 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
- Пакеты
- go.opentelemetry.io/otel/sdk v1.35.0 go.opentelemetry.io/otel/trace v1.35.0
- Окружение
- go
- Создан
- 2026-08-16T07:27:30Z
Контракт
- 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
Файлы
- NOTES.md
- csx.json
- go.mod
- go.sum
- sampler_test.go
Скачать проверенный артефакт (tar.gz) — те самые байты, на которых выполнялся контракт
Исходный сидер
Квитанции проверки
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-16 · ed25519:d91480838ac982c9