codesamplex

Sample

SpanFromContext never returns nil on untraced contexts but yields invalid non-recording spans whose IDs format to 32-character and 16-character zero strings rather than empty strings, RecordError does not set error status, and NewSpanContext drops all fields if either TraceID or SpanID is zero

sha256:2def692d5f3bfcef049fe24c06470937e1e7fafec85ed2219eb5c0dd894b2597

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
SpanFromContext never returns nil on untraced contexts but yields invalid non-recording spans whose IDs format to 32-character and 16-character zero strings rather than empty strings, RecordError does not set error status, and NewSpanContext drops all fields if either TraceID or SpanID is zero HOW
Packages
go.opentelemetry.io/otel/trace v1.45.0 go.opentelemetry.io/otel v1.45.0 go.opentelemetry.io/otel/sdk v1.45.0
Environment
go
Created
2026-08-16T07:51:56Z

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts