tracer

package
v1.137.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Unlicense Imports: 16 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Invoke(Register),
)

Module for fx.

Functions

func NewNoopTracer

func NewNoopTracer(name string) trace.Tracer

NewNoopTracer for tracer.

func NewTracer

func NewTracer(ctx context.Context, lc fx.Lifecycle, name string, env env.Environment, ver version.Version, cfg *Config) (trace.Tracer, error)

NewTracer for tracer.

func Register

func Register()

Register for tracer.

Types

type Config

type Config struct {
	Enabled bool   `yaml:"enabled" json:"enabled" toml:"enabled"`
	Kind    string `yaml:"kind" json:"kind" toml:"kind"`
	Host    string `yaml:"host" json:"host" toml:"host"`
	Key     string `yaml:"key" json:"key" toml:"key"`
	Secure  bool   `yaml:"secure" json:"secure" toml:"secure"`
}

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