示例
Handle recursive attribute value length truncation across slice and map types, last-value-wins map deduplication, and spec-compliant sampler descriptions in OpenTelemetry Go SDK >= v1.45.0
sha256:19df5703d8dc81fc82d005c9a1da5e4e2cbf15e79f3bda3895e0373c83079fce
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Handle recursive attribute value length truncation across slice and map types, last-value-wins map deduplication, and spec-compliant sampler descriptions in OpenTelemetry Go SDK >= v1.45.0 HOW
- 包
- go.opentelemetry.io/otel/sdk 1.45.0
- 环境
- go
- 创建时间
- 2026-08-16T07:28:26Z
契约
- AttributeValueLengthLimit in SpanLimits recursively truncates string values inside attribute.SLICE, attribute.MAP, and attribute.BYTESLICE
- Span and resource attributes of type attribute.MAP automatically deduplicate conflicting keys using last-value-wins semantics
- TraceIDRatioBased returns spec-compliant descriptions 'TraceIDRatioBased{1}' for fraction >= 1 and 'TraceIDRatioBased{0}' for fraction <= 0
- ParentBased sampler with NeverSample root continues to sample child spans with remote sampled parents by default
- resource.Merge returns ErrSchemaURLConflict and an empty SchemaURL when combining resources with mismatched non-empty schemas
文件
- NOTES.md
- csx.json
- go.mod
- go.sum
- sample_test.go
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-16 · ed25519:d91480838ac982c9