tracing

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HashOpName        = "bcrypt.hash"
	CompareOpName     = "bcrypt.compare"
	WorkFactorTagName = "bcrypt.workfactor"
)

Variables

This section is empty.

Functions

func HelpMessage

func HelpMessage() string

Types

type JaegerConfig

type JaegerConfig struct {
	LocalAgentHostPort string
	SamplerType        string
	SamplerValue       float64
	SamplerServerUrl   string
	Propagation        string
}

type TracedBCrypt

type TracedBCrypt struct {
	WorkFactor int
}

TracedBCrypt implements the Hasher interface

func (*TracedBCrypt) Compare

func (b *TracedBCrypt) Compare(ctx context.Context, hash, data []byte) error

func (*TracedBCrypt) Hash

func (b *TracedBCrypt) Hash(ctx context.Context, data []byte) ([]byte, error)

type Tracer

type Tracer struct {
	ServiceName  string
	Provider     string
	Logger       *logrusx.Logger
	JaegerConfig *JaegerConfig
	ZipkinConfig *ZipkinConfig
	// contains filtered or unexported fields
}

func (*Tracer) Close

func (t *Tracer) Close()

func (*Tracer) IsLoaded

func (t *Tracer) IsLoaded() bool

func (*Tracer) ServeHTTP

func (t *Tracer) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

func (*Tracer) Setup

func (t *Tracer) Setup() error

type ZipkinConfig added in v1.5.0

type ZipkinConfig struct {
	ServerURL string
}

Jump to

Keyboard shortcuts

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