tracer

package
v1.208.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 20 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 env.Version, name env.Name, cfg *Config, logger *zap.Logger) (trace.Tracer, error)

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  Key    `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, error)

GetKey for tracer.

func (*Config) HasKey added in v1.191.0

func (c *Config) HasKey() bool

HasKey for tracer.

type Key added in v1.193.0

type Key string

Key for tracer.

Jump to

Keyboard shortcuts

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