tracer

package
v1.154.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 14 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func IsEnabled added in v1.143.2

func IsEnabled(c *Config) bool

IsEnabled for tracer.

func NewNoopTracer

func NewNoopTracer() trace.Tracer

NewNoopTracer for tracer.

func NewTracer

func NewTracer(lc fx.Lifecycle, 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"`
}

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