1
0
mirror of https://github.com/golang/go synced 2024-11-06 09:26:18 -07:00
go/internal/telemetry/unit/unit.go
Rob Findley df87866820 internal/lsp,internal/telemetry: correct stale docstrings
Several docstrings reference earlier names for the symbols they
document. This CL corrects those that I noticed while reading the lsp
code.

Change-Id: I1968459feff7011e070333c99eb149e72d3302de
Reviewed-on: https://go-review.googlesource.com/c/tools/+/214801
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-01-15 14:25:42 +00:00

20 lines
656 B
Go

// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package unit holds the definitions for the units you can use in telemetry.
package unit
// Unit is used to specify the units for a given measure.
// This is can used for display purposes.
type Unit string
const (
// Dimensionless indicates that a measure has no specified units.
Dimensionless = "1"
// Bytes indicates that that a measure is recording number of bytes.
Bytes = "By"
// Milliseconds indicates that a measure is recording a duration in milliseconds.
Milliseconds = "ms"
)