tracing

package
v0.2012.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package tracing implements a tracing service.

Index

Constants

This section is empty.

Variables

Flags has the flags used by the tracing service.

Functions

func New

func New(serviceName string) (service.CleanupAble, error)

New constructs a new tracing service.

Types

type ServiceConfig

type ServiceConfig struct {
	// Enabled is true if the service is enabled.
	Enabled bool
	// FlushInterval
	FlushInterval time.Duration
	// AgentAddress is the address of the tracing server.
	AgentAddress string
	// SamplerParam
	SamplerParam float64
}

ServiceConfig contains the configuration parameters for tracing.

func GetServiceConfig

func GetServiceConfig() *ServiceConfig

GetServiceConfig gets the tracing configuration parameter struct.

Jump to

Keyboard shortcuts

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