noop

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 72

Documentation

Overview

Package noop provides an implementation of the OpenTelemetry metric API that produces no telemetry and minimizes used computation resources.

Using this package to implement the OpenTelemetry metric API will effectively disable OpenTelemetry.

This implementation can be embedded in other implementations of the OpenTelemetry metric API. Doing so will mean the implementation defaults to no operation for methods it does not implement.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float64Counter

type Float64Counter struct{ embedded.Float64Counter }

Float64Counter is an OpenTelemetry Counter used to record float64 measurements. It produces no telemetry.

func (Float64Counter) Add

Add performs no operation.

type Float64Histogram

type Float64Histogram struct{ embedded.Float64Histogram }

Float64Histogram is an OpenTelemetry Histogram used to record float64 measurements. It produces no telemetry.

func (Float64Histogram) Record

Record performs no operation.

type Float64ObservableCounter

type Float64ObservableCounter struct {
	metric.Float64Observable
	embedded.Float64ObservableCounter
}

Float64ObservableCounter is an OpenTelemetry ObservableCounter used to record float64 measurements. It produces no telemetry.

type Float64ObservableGauge

type Float64ObservableGauge struct {
	metric.Float64Observable
	embedded.Float64ObservableGauge
}

Float64ObservableGauge is an OpenTelemetry ObservableGauge used to record float64 measurements. It produces no telemetry.

type Float64ObservableUpDownCounter

type Float64ObservableUpDownCounter struct {
	metric.Float64Observable
	embedded.Float64ObservableUpDownCounter
}

Float64ObservableUpDownCounter is an OpenTelemetry ObservableUpDownCounter used to record float64 measurements. It produces no telemetry.

type Float64Observer

type Float64Observer struct{ embedded.Float64Observer }

Float64Observer is a recorder of float64 measurements that performs no operation.

func (Float64Observer) Observe

Observe performs no operation.

type Float64UpDownCounter

type Float64UpDownCounter struct{ embedded.Float64UpDownCounter }

Float64UpDownCounter is an OpenTelemetry UpDownCounter used to record float64 measurements. It produces no telemetry.

func (Float64UpDownCounter) Add

Add performs no operation.

type Int64Counter

type Int64Counter struct{ embedded.Int64Counter }

Int64Counter is an OpenTelemetry Counter used to record int64 measurements. It produces no telemetry.

func (Int64Counter) Add

Add performs no operation.

type Int64Histogram

type Int64Histogram struct{ embedded.Int64Histogram }

Int64Histogram is an OpenTelemetry Histogram used to record int64 measurements. It produces no telemetry.

func (Int64Histogram) Record

Record performs no operation.

type Int64ObservableCounter

type Int64ObservableCounter struct {
	metric.Int64Observable
	embedded.Int64ObservableCounter
}

Int64ObservableCounter is an OpenTelemetry ObservableCounter used to record int64 measurements. It produces no telemetry.

type Int64ObservableGauge

type Int64ObservableGauge struct {
	metric.Int64Observable
	embedded.Int64ObservableGauge
}

Int64ObservableGauge is an OpenTelemetry ObservableGauge used to record int64 measurements. It produces no telemetry.

type Int64ObservableUpDownCounter

type Int64ObservableUpDownCounter struct {
	metric.Int64Observable
	embedded.Int64ObservableUpDownCounter
}

Int64ObservableUpDownCounter is an OpenTelemetry ObservableUpDownCounter used to record int64 measurements. It produces no telemetry.

type Int64Observer

type Int64Observer struct{ embedded.Int64Observer }

Int64Observer is a recorder of int64 measurements that performs no operation.

func (Int64Observer) Observe

func (Int64Observer) Observe(int64, ...metric.ObserveOption)

Observe performs no operation.

type Int64UpDownCounter

type Int64UpDownCounter struct{ embedded.Int64UpDownCounter }

Int64UpDownCounter is an OpenTelemetry UpDownCounter used to record int64 measurements. It produces no telemetry.

func (Int64UpDownCounter) Add

Add performs no operation.

type Meter

type Meter struct{ embedded.Meter }

Meter is an OpenTelemetry No-Op Meter.

func (Meter) Float64Counter

Float64Counter returns a Counter used to record int64 measurements that produces no telemetry.

func (Meter) Float64Histogram

Float64Histogram returns a Histogram used to record int64 measurements that produces no telemetry.

func (Meter) Float64ObservableCounter

Float64ObservableCounter returns an ObservableCounter used to record int64 measurements that produces no telemetry.

func (Meter) Float64ObservableGauge

Float64ObservableGauge returns an ObservableGauge used to record int64 measurements that produces no telemetry.

func (Meter) Float64ObservableUpDownCounter

Float64ObservableUpDownCounter returns an ObservableUpDownCounter used to record int64 measurements that produces no telemetry.

func (Meter) Float64UpDownCounter

Float64UpDownCounter returns an UpDownCounter used to record int64 measurements that produces no telemetry.

func (Meter) Int64Counter

Int64Counter returns a Counter used to record int64 measurements that produces no telemetry.

func (Meter) Int64Histogram

Int64Histogram returns a Histogram used to record int64 measurements that produces no telemetry.

func (Meter) Int64ObservableCounter

Int64ObservableCounter returns an ObservableCounter used to record int64 measurements that produces no telemetry.

func (Meter) Int64ObservableGauge

Int64ObservableGauge returns an ObservableGauge used to record int64 measurements that produces no telemetry.

func (Meter) Int64ObservableUpDownCounter

Int64ObservableUpDownCounter returns an ObservableUpDownCounter used to record int64 measurements that produces no telemetry.

func (Meter) Int64UpDownCounter

Int64UpDownCounter returns an UpDownCounter used to record int64 measurements that produces no telemetry.

func (Meter) RegisterCallback

func (Meter) RegisterCallback(metric.Callback, ...metric.Observable) (metric.Registration, error)

RegisterCallback performs no operation.

type MeterProvider

type MeterProvider struct{ embedded.MeterProvider }

MeterProvider is an OpenTelemetry No-Op MeterProvider.

func NewMeterProvider

func NewMeterProvider() MeterProvider

NewMeterProvider returns a MeterProvider that does not record any telemetry.

func (MeterProvider) Meter

Meter returns an OpenTelemetry Meter that does not record any telemetry.

type Observer

type Observer struct{ embedded.Observer }

Observer acts as a recorder of measurements for multiple instruments in a Callback, it performing no operation.

func (Observer) ObserveFloat64

ObserveFloat64 performs no operation.

func (Observer) ObserveInt64

ObserveInt64 performs no operation.

type Registration

type Registration struct{ embedded.Registration }

Registration is the registration of a Callback with a No-Op Meter.

func (Registration) Unregister

func (Registration) Unregister() error

Unregister unregisters the Callback the Registration represents with the No-Op Meter. This will always return nil because the No-Op Meter performs no operation, including hold any record of registrations.

Jump to

Keyboard shortcuts

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