tracer

package
v1.184.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 21 Imported by: 6

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.

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) IsBaselime added in v1.128.0

func (c *Config) IsBaselime() bool

IsBaselime configuration.

Jump to

Keyboard shortcuts

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