runtime

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const LibraryName = "otel-launcher-go/runtime"

LibraryName is the value of instrumentation.Library.Name.

Variables

View Source
var (
	ErrUnmatchedBuiltin   = fmt.Errorf("builtin unmatched")
	ErrOvermatchedBuiltin = fmt.Errorf("builtin overmatched")
)

Functions

func Start

func Start(opts ...Option) error

Start initializes reporting of runtime metrics using the supplied config.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option supports configuring optional settings for runtime metrics.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider sets the Metric implementation to use for reporting. If this option is not used, the global metric.MeterProvider will be used. `provider` must be non-nil.

Jump to

Keyboard shortcuts

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