Documentation ¶
Index ¶
- Variables
- func Error(err error, span trace.Span)
- func IsEnabled(c *Config) bool
- func Meta(ctx context.Context, span trace.Span)
- func NewNoopTracer() trace.Tracer
- func NewTracer(lc fx.Lifecycle, env env.Environment, ver version.Version, cfg *Config) (trace.Tracer, error)
- func OperationName(area, name string) string
- func Register()
- type Config
Constants ¶
This section is empty.
Variables ¶
Module for fx.
Functions ¶
func NewTracer ¶
func NewTracer(lc fx.Lifecycle, env env.Environment, ver version.Version, cfg *Config) (trace.Tracer, error)
NewTracer for tracer.
func OperationName ¶ added in v1.162.0
OperationName 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
IsBaselime configuration.
Click to show internal directories.
Click to hide internal directories.