ocagent

package
v0.0.0-...-c330695 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExporter

func RegisterExporter(ctx context.Context, conf Config) (func(), error)

RegisterExporter add jaeger as trace exporter

Types

type Config

type Config struct {
	// Address of the OC Agent
	Address string `toml:"address" default:"localhost:55678" comment:"OpenCensus agent address"`
	// ServiceName is the name of the process.
	ServiceName string `toml:"serviceName" comment:"Service name"`
	UseTLS      bool   `toml:"useTLS" default:"false" comment:"Enable TLS listener"`
	TLS         struct {
		CertificatePath              string `toml:"certificatePath" default:"" comment:"Certificate path"`
		PrivateKeyPath               string `toml:"privateKeyPath" default:"" comment:"Private Key path"`
		CACertificatePath            string `toml:"caCertificatePath" default:"" comment:"CA Certificate Path"`
		ClientAuthenticationRequired bool   `toml:"clientAuthenticationRequired" default:"false" comment:"Force client authentication"`
	} `toml:"TLS" comment:"TLS Socket settings"`
}

Config holds information necessary for sending trace to OpenCensus agent.

func (Config) Validate

func (c Config) Validate() error

Validate checks that the configuration is valid.

Jump to

Keyboard shortcuts

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