wrappers

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TagSpan

func TagSpan(span opentracing.Span, opts clients.CommonOpts, step pipeline.Step)

Types

type LogWrapper

type LogWrapper struct {
	Opts clients.CommonOpts
	Log  logrus.FieldLogger
}

func (*LogWrapper) Fields

func (l *LogWrapper) Fields(ctx context.Context, step pipeline.Step) logrus.Fields

func (*LogWrapper) Wrap

func (*LogWrapper) WrapStep

func (l *LogWrapper) WrapStep(step pipeline.Step) pipeline.Step

type TraceWrapper

type TraceWrapper struct {
	Opts   clients.CommonOpts
	Tracer opentracing.Tracer
}

func (*TraceWrapper) Fields

func (l *TraceWrapper) Fields(ctx context.Context, step pipeline.Step) logrus.Fields

func (*TraceWrapper) Wrap

func (*TraceWrapper) WrapStep

func (l *TraceWrapper) WrapStep(step pipeline.Step) pipeline.Step

Jump to

Keyboard shortcuts

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