client

package
v2.24.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, cfg Config, serviceName string, fileWatcher *fsnotify.Watcher, logger log.Logger) (*Client, error)

New creates a new tracer provider with grpc exporter when it is enabled.

func (*Client) AddCloseFunc

func (c *Client) AddCloseFunc(f func())

AddCloseFunc adds a function to be called by the Close method. This eliminates the need for wrapping the Client.

func (*Client) Close

func (c *Client) Close()

func (*Client) GetTracerProvider

func (c *Client) GetTracerProvider() trace.TracerProvider

type Config

type Config struct {
	GRPC GRPCConfig `yaml:"grpc"`
}

func (*Config) Validate

func (c *Config) Validate() error

type GRPCConfig

type GRPCConfig struct {
	Enabled    bool          `yaml:"enabled"`
	Connection client.Config `yaml:",inline"`
}

func (*GRPCConfig) Validate

func (c *GRPCConfig) Validate() error

Jump to

Keyboard shortcuts

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