Documentation ¶
Index ¶
- Variables
- func Module() fx.Option
- func NewTraceExporter(ctx context.Context, cfg Config, logger *zap.Logger, ...) (sdktrace.SpanExporter, error)
- func NewTraceProvider(ctx context.Context, lc fx.Lifecycle, texporter sdktrace.SpanExporter, ...) (trace.TracerProvider, error)
- func RegisterTrace(tracerProvoder trace.TracerProvider) error
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = wrappedCfg{ Trace: Config{ Fraction: 1.0, Driver: "none", }, }
Functions ¶
func Module ¶
Module requires ctx_module, log_module, svc_module if configured with stackdriver exporter and cfg_module to provide config
func NewTraceExporter ¶
func NewTraceExporter(ctx context.Context, cfg Config, logger *zap.Logger, svcCfg svc_module.OptionalConfig) (sdktrace.SpanExporter, error)
func NewTraceProvider ¶
func NewTraceProvider(ctx context.Context, lc fx.Lifecycle, texporter sdktrace.SpanExporter, cfg Config, svcCfg svc_module.OptionalConfig, logger *zap.Logger) (trace.TracerProvider, error)
func RegisterTrace ¶
func RegisterTrace(tracerProvoder trace.TracerProvider) error
Types ¶
Click to show internal directories.
Click to hide internal directories.