tracer

package
v1.6.5-rc14 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// GrpcEndpoint provider grpc endpoint
	GrpcEndpoint types.Endpoint `env:""`
	// HttpEndpoint provider http endpoint
	HttpEndpoint types.Endpoint `env:""`
	// ServiceName service name, default use env `PRJ_NAME`
	ServiceName string `env:""`
	// ServiceVersion service version, default use env `PRJ_VERSION`
	ServiceVersion string `env:""`
	// InstanceID the unique id of current service, default gen uuid when trace config init
	InstanceID string `env:""`
	// DebugMode if enable debug mode
	DebugMode datatypes.Bool `env:""`
	// TLS config for connecting provider Endpoint
	TLS *conftls.X509KeyPair
	// contains filtered or unexported fields
}

func (*Config) Init

func (c *Config) Init() error

func (*Config) IsZero

func (c *Config) IsZero() bool

func (*Config) SetDefault

func (c *Config) SetDefault()

func (*Config) Shutdown

func (c *Config) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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