telemetrytest

package module
v0.162.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL