type go.pact.im/x/traces.Record
32 uses
go.pact.im/x/traces (current package)
handler.go#L9: Handle(ctx context.Context, rec Record) error
handler.go#L13: type HandlerFunc func(ctx context.Context, rec Record) error
handler.go#L16: func (f HandlerFunc) Handle(ctx context.Context, rec Record) error {
handler.go#L22: func (*discardHandler) Handle(context.Context, Record) error {
record.go#L25: type Record struct {
span.go#L90: rec Record
span.go#L94: func newSpanState(rec Record) *spanState {
span.go#L144: func (s *spanState) finish(end time.Time) (Record, bool) {
span.go#L148: return Record{}, false
tracer.go#L149: state := newSpanState(Record{
go.pact.im/x/traces/_example
app.go#L99: exp := batchtraces.ExporterFunc(func(ctx context.Context, batch []traces.Record) error {
go.pact.im/x/traces/batchtraces
batcher.go#L53: recsc chan traces.Record
batcher.go#L72: func (b *Batcher) Handle(_ context.Context, rec traces.Record) error {
batcher.go#L97: recsc: make(chan traces.Record),
batcher.go#L123: batch := make([]traces.Record, 0, b.maxBatch)
batcher.go#L138: batch = make([]traces.Record, 0, b.maxBatch)
batcher.go#L164: func (b *Batcher) export(ctx context.Context, batch []traces.Record) {
exporter.go#L14: Export(ctx context.Context, batch []traces.Record) error
exporter.go#L18: type ExporterFunc func(ctx context.Context, batch []traces.Record) error
exporter.go#L21: func (f ExporterFunc) Export(ctx context.Context, batch []traces.Record) error {
passthrough.go#L19: func (p *passthrough) Handle(ctx context.Context, rec traces.Record) error {
passthrough.go#L20: return p.exp.Export(ctx, []traces.Record{rec})
go.pact.im/x/traces/otlptraces
encode.go#L17: func (e *Exporter) encode(batch []traces.Record) *tracepb.TracesData {
encode.go#L45: func encodeSpan(rec *traces.Record) *tracepb.Span {
exporter.go#L62: func (e *Exporter) Export(ctx context.Context, batch []traces.Record) error {
go.pact.im/x/traces/tracestest
tracestest.go#L17: recs []traces.Record
tracestest.go#L23: func (r *Recorder) Handle(_ context.Context, rec traces.Record) error {
tracestest.go#L31: func (r *Recorder) Records() []traces.Record {
tracestest.go#L45: func (r *Recorder) Find(name string) (traces.Record, bool) {
tracestest.go#L51: return traces.Record{}, false
tracestest.go#L56: func Attr(rec traces.Record, key string) (any, bool) {
tracestest.go#L69: func IsChild(parent, child traces.Record) bool {