Documentation ¶
Index ¶
- Variables
- func InitTracing(ctx context.Context, logger *zap.SugaredLogger, lc fx.Lifecycle, ...) error
- func NewMeterProvider(ctx context.Context, r *resource.Resource, lc fx.Lifecycle, ...) (*metric.MeterProvider, error)
- func NewResource(ctx context.Context, app metadata.ApplicationMetadata) (*resource.Resource, error)
- type Configuration
- type PushConfiguration
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidConfiguration = errors.New("invalid tracing configuration")
)
View Source
var Module = fx.Options( fx.Provide(NewResource), fx.Invoke(InitTracing), fx.Provide(NewMeterProvider), fx.Invoke(runtimeInstrumentation), )
Functions ¶
func InitTracing ¶
func InitTracing( ctx context.Context, logger *zap.SugaredLogger, lc fx.Lifecycle, r *resource.Resource, config Configuration, ) error
func NewMeterProvider ¶ added in v1.35.0
func NewMeterProvider( ctx context.Context, r *resource.Resource, lc fx.Lifecycle, config Configuration, ) (*metric.MeterProvider, error)
func NewResource ¶ added in v1.35.0
Types ¶
type Configuration ¶
type Configuration struct { SampleRate float64 Push PushConfiguration }
Click to show internal directories.
Click to hide internal directories.