rkasynq

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndSpan added in v0.0.2

func EndSpan(span trace.Span, success bool)

func GetPropagator added in v0.0.2

func GetPropagator(ctx context.Context) propagation.TextMapPropagator

func GetProvider added in v0.0.2

func GetProvider(ctx context.Context) *sdktrace.TracerProvider

func GetSpan

func GetSpan(ctx context.Context) trace.Span

func GetTraceId

func GetTraceId(ctx context.Context) string

func GetTracer added in v0.0.2

func GetTracer(ctx context.Context) trace.Tracer

func NewJaegerMid

func NewJaegerMid(traceRaw []byte) (asynq.MiddlewareFunc, error)

func NewSpan added in v0.0.2

func NewSpan(ctx context.Context, name string) (context.Context, trace.Span)

Types

type TraceConfig

type TraceConfig struct {
	Asynq struct {
		Trace rkmidtrace.BootConfig `yaml:"trace"`
	} `yaml:"asynq"`
}

type TraceMiddleware

type TraceMiddleware struct {
	// contains filtered or unexported fields
}

func (*TraceMiddleware) Middleware

func (m *TraceMiddleware) Middleware(h asynq.Handler) asynq.Handler

Jump to

Keyboard shortcuts

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