Back to

Package ocagent

Latest Go to latest

The highest tagged major version is .

Published: Aug 13, 2019 | License: MIT | Module:


func RegisterExporter

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

RegisterExporter add jaeger as trace exporter

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.

Package Files

  • config.go
  • exporter.go
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier