wrappers

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TagSpan

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

Types

type LogWrapper

type LogWrapper struct {
	Opts pipeline.CommonOpts
	Log  *logrus.Logger
}

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(steps ...pipeline.Step) []pipeline.Step

type TraceWrapper

type TraceWrapper struct {
	Opts   pipeline.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(steps ...pipeline.Step) []pipeline.Step

Jump to

Keyboard shortcuts

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