tracer

package
v0.0.0-...-928f7a2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Opts
	// contains filtered or unexported fields
}

Component is an application building block.

func NewComponent

func NewComponent(opts Opts) *Component

NewComponent returns ready to use Tracer component.

func (Component) Init

func (c Component) Init() error

Init implements application.Initializer interface.

func (Component) Run

func (c Component) Run() error

Run implements application.Runner interface.

type Opts

type Opts struct {
	Disabled    bool
	ServiceName string
	Sampler     SamplerOpts
	Reporter    ReporterOpts
}

Opts describes settings for Tracer component.

type ReporterOpts

type ReporterOpts struct {
	LogSpans            bool
	BufferFlashInterval time.Duration
	LocalAgentHostPort  string
}

type SamplerOpts

type SamplerOpts struct {
	Type  string
	Param float64
}

Jump to

Keyboard shortcuts

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