Source File
record.go
Belonging Package
go.pact.im/x/traces
package tracesimport ()// SpanKind describes the role of a span in a trace.type SpanKind uint8// Span kinds.const (SpanKindUnspecified SpanKind = iotaSpanKindInternalSpanKindServerSpanKindClientSpanKindProducerSpanKindConsumer)// Record is an immutable snapshot of a finished span delivered to a [Handler].//// Handlers must not modify slices contained in Record. Because the span has// already ended and its storage is never reused by [Tracer], handlers may// retain a Record past the return of [Handler.Handle].type Record struct {// Ref is the identity of this span.Ref SpanRef// Parent is the parent span reference, or zero for root spans.Parent SpanRef// Scope identifies the instrumentation scope that created the span.Scope string// Name is the span name.Name string// Kind is the span kind.Kind SpanKind// Start is the time when the span started.Start time.Time// End is the time when the span ended.End time.Time// Attrs holds the span’s recorded attributes.Attrs []Attr// Err is the error recorded on the span, if any.Err error}
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)