tracer

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Type    zconstants.LogType
	Message string
	Attrs   [][2]string
}

type Span

type Span struct {
	Type       string
	Name       string
	StartTime  time.Time
	FinishTime time.Time
	Parent     SpanContext
	Follows    SpanContext
	Tags       map[string]string
	Logs       []Log
}

type SpanContext

type SpanContext any

type Tracer

type Tracer interface {
	CreateSpan(span Span) (SpanContext, error)
	InjectCarrier(spanContext SpanContext) ([]byte, error)
	ExtractCarrier(textMap []byte) (SpanContext, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL