Ejemplo
HeaderCarrier combined with TraceContext extracts the first traceparent header instead of rejecting multiple traceparents per W3C specification.
sha256:e10aef8833bfae44ce90347d18a34a9caf8140393a51b1a31dd6d4e1803b1742
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- go
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- go
- Lenguaje
- go
- Gestor de paquetes
- go modules
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- go 1.26
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- go 1.26
- Lenguaje
- go
- Gestor de paquetes
- go modules
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-17
Caso
- Objetivo
- HeaderCarrier combined with TraceContext extracts the first traceparent header instead of rejecting multiple traceparents per W3C specification. HOW
- Paquetes
-
go.opentelemetry.io/otel v1.28.0
- Entorno
- go
- Creado
- 2026-08-17T06:57:23Z
Lo que suele suponerse
Extracting from a request with multiple traceparent headers ignores them completely as mandated by the W3C Trace Context specification.
El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.
Contrato
- Extracting from a HeaderCarrier with two traceparent headers yields the SpanContext of the first header rather than an invalid, empty context.
- assert that the extracted SpanContext is valid.
- assert that the extracted TraceID matches the first header's trace ID.
Archivos
- NOTES.md
- csx.json
- go.mod
- go.sum
- main_test.go
- test_slice.go
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- go 1.26 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-17 · ed25519:d91480838ac982c9