Documentation ¶
Index ¶
- func ExtractSpanContextFromMessageHeaders(ctx context.Context, h *bertytypes.MessageHeaders) context.Context
- func From(ctx context.Context) trace.Tracer
- func InitTracer(flag, service string) func()
- func InjectSpanContextToMessageHeaders(ctx context.Context, h *bertytypes.MessageHeaders)
- func New(name string) trace.Tracer
- func NewJaegerProvider(host, service string) (trace.Provider, func(), error)
- func NewStdoutProvider() (trace.Provider, error)
- func NewTestingProvider(t *testing.T, name string) trace.Provider
- func Propagators() propagation.Propagators
- func SetGlobalTraceProvider(tp trace.Provider)
- func SpanFromMessageHeaders(ctx context.Context, h *bertytypes.MessageHeaders, name string, ...) (context.Context, trace.Span)
- type Cleanup
- type Config
- type ExporterType
- type RuntimeProvider
- type RuntimeTracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractSpanContextFromMessageHeaders ¶ added in v2.65.0
func ExtractSpanContextFromMessageHeaders(ctx context.Context, h *bertytypes.MessageHeaders) context.Context
func InitTracer ¶
func InitTracer(flag, service string) func()
func InjectSpanContextToMessageHeaders ¶ added in v2.65.0
func InjectSpanContextToMessageHeaders(ctx context.Context, h *bertytypes.MessageHeaders)
func NewJaegerProvider ¶ added in v2.65.0
func NewStdoutProvider ¶ added in v2.65.0
func NewTestingProvider ¶ added in v2.65.0
func Propagators ¶ added in v2.65.0
func Propagators() propagation.Propagators
func SetGlobalTraceProvider ¶ added in v2.65.0
func SpanFromMessageHeaders ¶ added in v2.65.0
Types ¶
type Config ¶ added in v2.65.0
type Config struct { ExporterType ExporterType ServiceName string RuntimeProvider bool // Jaeger config JaegerHost string }
type ExporterType ¶ added in v2.65.0
type ExporterType int
const ( ExporterTypeNone ExporterType = iota ExporterTypeStdout ExporterTypeJaeger )
type RuntimeProvider ¶ added in v2.65.0
type RuntimeProvider struct {
// contains filtered or unexported fields
}
func NewRuntimeProvider ¶ added in v2.65.0
func NewRuntimeProvider(root trace.Provider) *RuntimeProvider
func (*RuntimeProvider) Tracer ¶ added in v2.65.0
func (rp *RuntimeProvider) Tracer(name string, opts ...trace.TracerOption) trace.Tracer
type RuntimeTracer ¶ added in v2.65.0
type RuntimeTracer struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.