Beispiel
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
Fall
- Ziel
- Multiple WithInstrumentationAttributes and WithInstrumentationAttributeSet options merge scope attributes with last-value-wins precedence instead of overwriting earlier options HOW
- Pakete
- go.opentelemetry.io/otel v1.45.0 go.opentelemetry.io/otel/trace v1.45.0
- Umgebung
- go
- Erstellt
- 2026-08-16T12:32:20Z
Contract
- 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
Dateien
- NOTES.md
- csx.json
- go.mod
- go.sum
- tracer_config_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