client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 11 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 {
	Provider     *sdktrace.TracerProvider
	Exporter     *jaeger.Exporter
	Logger       *logrus.Logger
	CollectorURL string
	ServiceName  string
	Environment  string
}

Client is the implementation of tracing client for Jaeger.

func New

func New(opts *Opts) (*Client, error)

New creates a new tracing client for Jaeger with the given configuration.

func (*Client) Connect

func (jc *Client) Connect() (*Client, error)

Connect connects to the tracing server and returns a shutdown function and error.

func (*Client) Disconnect

func (jc *Client) Disconnect(ctx context.Context) error

Disconnect disconnects from the tracing server and returns an error.

type Opts

type Opts struct {
	Logger       *logrus.Logger
	CollectorURL string
	ServiceName  string
	Environment  string
}

Opts is the configuration for Client.

Jump to

Keyboard shortcuts

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