logo
Available on crate feature metrics only.
Expand description

SDK API

Structs

An atomic version of Number

Descriptor contains all the settings that describe an instrument, including its name, metric kind, number kind, and the configurable options.

Number represents either an integral or a floating point value. It needs to be accompanied with a source of NumberKind that describes the actual type of the value stored within Number.

Enums

Kinds of OpenTelemetry metric instruments

A descriptor for the encoded data type of a Number

Traits

A utility extension to allow upcasting.

An implementation-level interface to an asynchronous instrument (e.g., Observable instruments).

A common interface for synchronous and asynchronous instruments.

The interface an SDK must implement to supply a Meter implementation.

The implementation-level interface to a generic synchronous instrument (e.g., Histogram and Counter instruments).

Functions

wraps impl to be a full implementation of a Meter.