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 env.Version, name env.Name, ...) (trace.Tracer, error)
- func OperationName(area, name string) string
- func Register()
- func WithTraceID(ctx context.Context, span trace.Span) context.Context
- type Config
Constants ¶
This section is empty.
Variables ¶
Module for fx.
Functions ¶
func NewTracer ¶
func NewTracer(lc fx.Lifecycle, env env.Environment, ver env.Version, name env.Name, 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 { Headers header.Map `yaml:"headers,omitempty" json:"headers,omitempty" toml:"headers,omitempty"` Kind string `yaml:"kind,omitempty" json:"kind,omitempty" toml:"kind,omitempty"` URL string `yaml:"url,omitempty" json:"url,omitempty" toml:"url,omitempty"` }
Config for tracer.
Click to show internal directories.
Click to hide internal directories.