tracer

package
v1.149.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 15 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 IsEnabled added in v1.143.2

func IsEnabled(c *Config) bool

IsEnabled for tracer.

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,omitempty" json:"enabled,omitempty" toml:"enabled,omitempty"`
	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"`
	Secure  bool   `yaml:"secure,omitempty" json:"secure,omitempty" toml:"secure,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