tracer

package
v1.191.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 21 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func Error added in v1.163.2

func Error(err error, span trace.Span)

Error for tracer.

func IsEnabled added in v1.143.2

func IsEnabled(cfg *Config) bool

IsEnabled for tracer.

func Meta added in v1.160.0

func Meta(ctx context.Context, span trace.Span)

Meta for tracer.

func NewTracer

func NewTracer(lc fx.Lifecycle, env env.Environment, ver version.Version, cfg *Config, logger *zap.Logger) trace.Tracer

NewTracer for tracer.

func OperationName added in v1.162.0

func OperationName(area, name string) string

OperationName for tracer.

func Register

func Register()

Register for tracer.

func WithTraceID added in v1.190.0

func WithTraceID(ctx context.Context, span trace.Span) context.Context

WithTraceID for tracer.

Types

type Config

type Config struct {
	Kind string `yaml:"kind,omitempty" json:"kind,omitempty" toml:"kind,omitempty"`
	Host string `yaml:"host,omitempty" json:"host,omitempty" toml:"host,omitempty"`
	Key  string `yaml:"key,omitempty" json:"key,omitempty" toml:"key,omitempty"`
}

Config for tracer.

func (*Config) GetKey added in v1.191.0

func (c *Config) GetKey() string

GetKey for tracer.

func (*Config) HasKey added in v1.191.0

func (c *Config) HasKey() bool

HasKey for tracer.

Jump to

Keyboard shortcuts

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