Documentation
¶
Index ¶
- func WithLogger(logger *zap.Logger, shutdownFunc component.ShutdownFunc) telemetry.FactoryOption
- func WithMeterProvider(provider metric.MeterProvider) telemetry.FactoryOption
- func WithResource(res pcommon.Resource, schemaURL string) telemetry.FactoryOption
- func WithTracerProvider(provider trace.TracerProvider) telemetry.FactoryOption
- type ShutdownMeterProvider
- type ShutdownTracerProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithLogger ¶
func WithLogger(logger *zap.Logger, shutdownFunc component.ShutdownFunc) telemetry.FactoryOption
WithLogger returns a telemetry.FactoryOption that configures the factory's CreateLogger method to return logger and shutdown func.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) telemetry.FactoryOption
WithMeterProvider returns a telemetry.FactoryOption that configures the factory's CreateMeterProvider method to return provider. If provider does not implement the Shutdown method, it will be wrapped with ShutdownMeterProvider with a no-op shutdown func.
func WithResource ¶
func WithResource(res pcommon.Resource, schemaURL string) telemetry.FactoryOption
WithResource returns a telemetry.FactoryOption that configures the factory's CreateResource method to return res with the given schema URL.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) telemetry.FactoryOption
WithTracerProvider returns a telemetry.FactoryOption that configures the factory's CreateTracerProvider method to return provider. If provider does not implement the Shutdown method, it will be wrapped with ShutdownTracerProvider with a no-op shutdown func.
Types ¶
type ShutdownMeterProvider ¶
type ShutdownMeterProvider struct {
metric.MeterProvider
component.ShutdownFunc
}
type ShutdownTracerProvider ¶
type ShutdownTracerProvider struct {
trace.TracerProvider
component.ShutdownFunc
}