Documentation ¶
Index ¶
- Variables
- func Error(err error, span trace.Span)
- func IsEnabled(cfg *Config) bool
- func Meta(ctx context.Context, span trace.Span)
- func NewTracer(lc fx.Lifecycle, env env.Environment, ver version.Version, cfg *Config, ...) (trace.Tracer, error)
- func OperationName(area, name string) string
- func Register()
- func WithTraceID(ctx context.Context, span trace.Span) context.Context
- type Config
- type Key
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, logger *zap.Logger) (trace.Tracer, error)
NewTracer for tracer.
func OperationName ¶ added in v1.162.0
OperationName 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.
Click to show internal directories.
Click to hide internal directories.