Files

21 lines
315 B
Go

package core
type ITracer = func(TraceContext, string, SpanOptions) ISpan
type ISpan interface {
SetError(error)
Close()
TraceContext() TraceContext
}
type SpanOptions struct {
Kind string
Service string
Attributes map[string]string
}
type TraceContext struct {
TraceID string
SpanID string
}