go-zero/core/trace/tracespec/spancontext.go
Kevin Wan f309e9f80c
fix golint issues in core/utils (#520)
* fix golint issues in core/utils

* fix golint issues in core/trace

* fix golint issues in core/trace
2021-02-26 16:20:47 +08:00

9 lines
180 B
Go

package tracespec
// SpanContext interface that represents a span context.
type SpanContext interface {
TraceId() string
SpanId() string
Visit(fn func(key, val string) bool)
}