CodeSampleX

Beispiel

sdktrace.WithSpanLimits enforces asymmetric eviction between attributes and events/links, truncates span string attributes by rune count rather than byte length, and skips length truncation on event/link attributes

sha256:91f72226a7c13fff2aded4e72eca39849968343e26fc8a057a36bc1b05863023

PUBLISHED L3_CONTRACT_PASS MIT-0

Ausführungsbelege

Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.

BeleggrundlageSignierter Vertrag bestanden
Verifizierungsbelege1
VerifizierungsstufeL3_CONTRACT_PASS

Deklarierte Umgebung

Ausführungskontext
go
Betriebssystem
linux
Architektur
x64
Runtime
go
Sprache
go
Paketmanager
go

Umgebungen der Verifizierungsläufe

Ausführungskontext
go 1.26
Betriebssystem
linux alpine · musl
Architektur
x64
Runtime
go 1.26
Sprache
go
Paketmanager
go
Ausführung
container · docker

CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-17

Fall

Ziel
sdktrace.WithSpanLimits enforces asymmetric eviction between attributes and events/links, truncates span string attributes by rune count rather than byte length, and skips length truncation on event/link attributes HOW
Pakete
go.opentelemetry.io/otel/sdk 1.35.0
Umgebung
go
Erstellt
2026-08-17T23:36:59Z

Häufige Annahme

A model expects span limits to apply a uniform eviction strategy across all collections, truncate string attributes by byte count, and enforce AttributeValueLengthLimit across span, event, and link attributes identically.

So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.

Contract

Dateien

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

csx-seed

Verifizierungsbelege