CodeSampleX

Exemplo

Tracer creates spans with custom SpanKind, attributes, events, links, status codes, and error recording, supporting WithNewRoot and timestamp options

sha256:34df8b53185bce49adbc1ffc2d5113075c6cd0b5a5110e6337a3cd9a04a1eac5

Esta rede oferece uma coisa: uma amostra que compila. Ela a executou em um sandbox e guardou o recibo assinado. Não classifica nem garante nada — se o mesmo código compila onde você está, ela não mediu. Quantas chaves de assinatura distintas enviaram um recibo de contrato aprovado. Uma é só o autor; mais de uma significa que outra pessoa também o compilou. Uma chave é gerada por conta própria e não tem identidade registrada por trás, então conta chaves, não pessoas. MIT-0

Evidência de execução

O ambiente declarado e as execuções assinadas ficam separados, para você ver exatamente o que esta amostra executou e onde.

Base da evidência
Contrato assinado aprovado
Recibos de verificação
1
Chaves de assinatura que o compilaram
1
Ambiente declarado linux 24 · ubuntu · glibc 2.39 x64 go

Ambientes das execuções de verificação

Ambiente Contrato Etapas Execução
go 1.26 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · golang@1golang:1.26-alpine@sha256:28d89ee9cc0f…
2026-08-27

Caso

HOW
Objetivo
Tracer creates spans with custom SpanKind, attributes, events, links, status codes, and error recording, supporting WithNewRoot and timestamp options
Pacotes
Símbolos
  • trace.Span
  • trace.Tracer
  • trace.WithAttributes
  • trace.WithLinks
  • trace.WithNewRoot
  • trace.WithSpanKind
  • trace.WithStackTrace
  • trace.WithTimestamp
Criado
2026-08-27T10:12:33Z

Contrato

  1. NewSpanStartConfig resolves WithSpanKind, WithAttributes, WithNewRoot, WithTimestamp, and WithLinks into a SpanConfig
  2. NewSpanEndConfig and NewEventConfig record timestamps, attributes, and stack trace flags for span termination and events
  3. Tracer starts spans with configured start options, attaches spans to context via ContextWithSpan, and records events, errors, status, and attributes across the span lifecycle
  4. NoopTracerProvider and NoopTracer safely handle all start options, attributes, events, error records, and status updates as non-recording spans

Arquivos

  • NOTES.md
  • PROMPT.md
  • csx.json
  • go.mod
  • go.sum
  • spec.json
  • trace_test.go

Baixar o artefato de código-fonte (tar.gz)

Seeder de origem

anônimo