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) GetTracerProvider ¶
func (c *Client) GetTracerProvider() trace.TracerProvider
type Config ¶
type Config struct {
GRPC GRPCConfig `yaml:"grpc"`
}
type GRPCConfig ¶
func (*GRPCConfig) Validate ¶
func (c *GRPCConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.