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
const (
	Dimensionless Unit = "1"
	Bytes         Unit = "By"
	Milliseconds  Unit = "ms"
)

Units defined by OpenTelemetry.

Source Files

doc.go unit.go

Version
v0.21.0
Published
Jun 18, 2021
Platform
linux/amd64
Last checked
2 hours ago

Tools for package owners.