Files
go-zero/core/trace/tracespec/spancontext.go

9 lines
180 B
Go
Raw Normal View History

2020-07-26 17:09:05 +08:00
package tracespec
// SpanContext interface that represents a span context.
2020-07-26 17:09:05 +08:00
type SpanContext interface {
TraceId() string
SpanId() string
Visit(fn func(key, val string) bool)
}