otmetricreader

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindVal

func FindVal[V int64 | float64](ctx context.Context, r *otsdkmetric.ManualReader, metricName string, kvs attribute.Set) (V, error)

FindVal is a testing utility to find the value of a specific metric collected by the sdk [metric.ManualReader].

It searches for a metric matching the provided metricName and attribute.Set. The type parameter V specifies the expected value type, which must be either int64 or float64.

An error is returned if a metric matching the name and attributes is not found, or if the found metric's value type does not match V.

Types

This section is empty.

Jump to

Keyboard shortcuts

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