package unit

import "go.opentelemetry.io/otel/metric/unit"

Package unit provides units.

This package is currently in a pre-GA phase. Backwards incompatible changes may be introduced in subsequent minor version releases as we work to track the evolving OpenTelemetry specification and user feedback.

Index

Types

type Unit

type Unit string

Unit is a determinate standard quantity of measurement.

const (
	Dimensionless Unit = "1"
	Bytes         Unit = "By"
	Milliseconds  Unit = "ms"
)

Units defined by OpenTelemetry.

Source Files

doc.go unit.go

Version
v0.32.2
Published
Oct 11, 2022
Platform
darwin/amd64
Last checked
5 minutes ago

Tools for package owners.