debug

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, logger *zap.Logger) (tracer opentracing.Tracer, closer io.Closer, err error)

New returns an instance of Jaeger Tracer that samples 100% of traces and logs all spans to stdout.

func NewLogger

func NewLogger(debug bool) *zap.Logger

setupLog creates logger

Types

type Config

type Config struct {
	Name string `long:"name" default:"app" description:"Tracing service name"`
	Host string `long:"host" default:"localhost" description:"Agent host"`
	Port string `long:"port" default:"6831" description:"Agent port"`
}

Config holds package configuration

Jump to

Keyboard shortcuts

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