Пример
Multiple WithInstrumentationAttributes and WithInstrumentationAttributeSet options merge scope attributes with last-value-wins precedence instead of overwriting earlier options
sha256:754781c365eac75c8696c1c32b0184086b76a32bfc2e42ecdcf75496a3940a73
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Кейс
- Цель
- Multiple WithInstrumentationAttributes and WithInstrumentationAttributeSet options merge scope attributes with last-value-wins precedence instead of overwriting earlier options HOW
- Пакеты
- go.opentelemetry.io/otel v1.45.0 go.opentelemetry.io/otel/trace v1.45.0
- Окружение
- go
- Создан
- 2026-08-16T12:32:20Z
Контракт
- assert multiple WithInstrumentationAttributes options merge disjoint keys across option calls
- assert duplicate keys across WithInstrumentationAttributes calls use last-value-wins semantics
- assert intra-call duplicate keys in WithInstrumentationAttributes synchronously deduplicate
- assert interleaved WithInstrumentationAttributes and WithInstrumentationAttributeSet merge correctly
- assert tracer version and schema URL options do not disturb merged instrumentation attributes
Файлы
- NOTES.md
- csx.json
- go.mod
- go.sum
- tracer_config_test.go
Скачать проверенный артефакт (tar.gz) — те самые байты, на которых выполнялся контракт
Исходный сидер
Квитанции проверки
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-16 · ed25519:d91480838ac982c9