exphistogram

package
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package exphistogram contains utility functions for exponential histogram conversions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LowerBoundary

func LowerBoundary(index, scale int) float64

LowerBoundary calculates the lower boundary given index and scale. Adopted from https://opentelemetry.io/docs/specs/otel/metrics/data-model/#producer-expectations

func LowerBoundaryNegativeScale

func LowerBoundaryNegativeScale(index, scale int) float64

LowerBoundaryNegativeScale calculates the lower boundary for scale <= 0. Adopted from https://opentelemetry.io/docs/specs/otel/metrics/data-model/#producer-expectations

func ToTDigest

func ToTDigest(dp pmetric.ExponentialHistogramDataPoint) (counts []int64, values []float64)

ToTDigest converts an OTLP exponential histogram data point to T-Digest counts and mean centroid values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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