Documentation ¶
Index ¶
- Constants
- func ClusterID(val types.ClusterID) attribute.KeyValue
- func GetGlobalMeterProvider() metric.MeterProvider
- func LogStreamID(val types.LogStreamID) attribute.KeyValue
- func NewOLTPExporter(ctx context.Context, clientOpts ...otlpmetricgrpc.Option) (metricsdk.Exporter, error)
- func NewStdoutExporter(opts ...stdoutmetric.Option) (metricsdk.Exporter, error)
- func SetGlobalMeterProvider(mp metric.MeterProvider)
- func TopicID(val types.TopicID) attribute.KeyValue
- type MeterProviderOption
- type StopMeterProvider
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func GetGlobalMeterProvider ¶ added in v0.15.0
func GetGlobalMeterProvider() metric.MeterProvider
func LogStreamID ¶ added in v0.15.0
func LogStreamID(val types.LogStreamID) attribute.KeyValue
func NewOLTPExporter ¶
func NewStdoutExporter ¶
func NewStdoutExporter(opts ...stdoutmetric.Option) (metricsdk.Exporter, error)
func SetGlobalMeterProvider ¶
func SetGlobalMeterProvider(mp metric.MeterProvider)
Types ¶
type MeterProviderOption ¶
type MeterProviderOption func(*meterProviderConfig)
MeterProviderOption is the interface that applies the value to a meter provider configurations.
func WithExporter ¶
func WithExporter(exporter metricsdk.Exporter) MeterProviderOption
WithExporter sets exporter and its shutdown function.
func WithHostInstrumentation ¶
func WithHostInstrumentation() MeterProviderOption
WithHostInstrumentation enables host instrumentation.
func WithResource ¶
func WithResource(resource *resource.Resource) MeterProviderOption
WithResource sets the Resource of a MeterProvider.
func WithRuntimeInstrumentation ¶
func WithRuntimeInstrumentation(opts ...runtime.Option) MeterProviderOption
WithRuntimeInstrumentation enables runtime instrumentation.
type StopMeterProvider ¶
StopMeterProvider is the type for stop function of meter provider. It stops both meter provider and exporter.
func NewMeterProvider ¶
func NewMeterProvider(opts ...MeterProviderOption) (metric.MeterProvider, StopMeterProvider, error)
NewMeterProvider creates a new meter provider and its stop function.
Click to show internal directories.
Click to hide internal directories.