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.27.0
Published
Feb 11, 2022
Platform
linux/amd64
Last checked
1 hour ago

Tools for package owners.