Documentation ¶
Index ¶
- Variables
- func AddSpanIdGenerator(generator *SpanIdGenerator)
- func DeleteSpanIdGenerator(key *SpanKey)
- func Disable()
- func Driver() types.Driver
- func Enable()
- func GetIp() string
- func Init(typ string, config map[string]interface{}) error
- func IsEnabled() bool
- func NewDefaultDriverImpl() types.Driver
- func RegisterDriver(typ string, driver types.Driver)
- func RegisterTracerBuilder(typ string, protocol types.ProtocolName, builder types.TracerBuilder)
- func SpanFromContext(ctx context.Context) types.Span
- func Tracer(protocol types.ProtocolName) types.Tracer
- type IdGenerator
- type SpanIdGenerator
- type SpanKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSuchDriver = errors.New("no such driver")
Functions ¶
func AddSpanIdGenerator ¶
func AddSpanIdGenerator(generator *SpanIdGenerator)
func DeleteSpanIdGenerator ¶
func DeleteSpanIdGenerator(key *SpanKey)
func NewDefaultDriverImpl ¶
func RegisterDriver ¶
func RegisterTracerBuilder ¶
func RegisterTracerBuilder(typ string, protocol types.ProtocolName, builder types.TracerBuilder)
Types ¶
type IdGenerator ¶
type IdGenerator struct {
// contains filtered or unexported fields
}
func IdGen ¶
func IdGen() IdGenerator
func (IdGenerator) GenerateTraceId ¶
func (idGen IdGenerator) GenerateTraceId() string
type SpanIdGenerator ¶
type SpanIdGenerator struct {
// contains filtered or unexported fields
}
A span ID generator that generate a span ID like 0.1, 0.1.1, 0.1.2 etc.
func GetSpanIdGenerator ¶
func GetSpanIdGenerator(key *SpanKey) *SpanIdGenerator
func NewSpanIdGenerator ¶
func NewSpanIdGenerator(traceId, spanId string) *SpanIdGenerator
func (*SpanIdGenerator) GenerateNextChildIndex ¶
func (generator *SpanIdGenerator) GenerateNextChildIndex() string
Click to show internal directories.
Click to hide internal directories.