Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(opts ...Option) (*tracesdk.TracerProvider, error)
NewProvider create an instance of tracer provider
Types ¶
type Config ¶
type Config struct {
// ServiceName customize service name
ServiceName string `yaml:"serviceName"`
// EndPoint the jaeger endpoint
EndPoint string `yaml:"endpoint"`
// InstanceID MUST be unique for each instance of the same
InstanceID string `yaml:"instanceID"`
}
Config is the config for tracer
type Option ¶
type Option func(ops *optionParams) error
Option the tracer provider option
func WithEndpoint ¶
WithEndpoint defines the full URL to the Jaeger HTTP Thrift collector
func WithInstanceID ¶
WithInstanceID defines the instance id
func WithServiceName ¶
WithServiceName defines service name
Click to show internal directories.
Click to hide internal directories.