| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
// Package configtelemetry defines various telemetry level for configuration. |
| 5 |
// It enables every component to have access to telemetry level |
| 6 |
// to enable metrics only when necessary. |
| 7 |
// |
| 8 |
// This document provides guidance on which telemetry level to adopt for Collector metrics. |
| 9 |
// When adopting a telemetry level, component authors are expected to rely on this guidance to |
| 10 |
// justify their choice of telemetry level. |
| 11 |
// |
| 12 |
// 1. configtelemetry.None |
| 13 |
// |
| 14 |
// No telemetry data is recorded. |
| 15 |
// |
| 16 |
// 2. configtelemetry.Basic |
| 17 |
// |
| 18 |
// Telemetry associated with this level provides essential coverage of the Collector telemetry. |
| 19 |
// It should only be used for telemetry generated by the core Collector API. |
| 20 |
// Components outside of the core API MUST NOT record telemetry at this level. |
| 21 |
// |
| 22 |
// 3. configtelemetry.Normal |
| 23 |
// |
| 24 |
// Telemetry associated with this level provides intermediate coverage of the Collector telemetry. |
| 25 |
// It should be the default for component authors. |
| 26 |
// |
| 27 |
// Normal-level telemetry should have limited cardinality and data volume, though it is acceptable |
| 28 |
// for them to scale linearly with the monitored resources. |
| 29 |
// For example, there may be a limit of 5 attribute sets or 5 spans generated per request. |
| 30 |
// |
| 31 |
// Normal-level telemetry should also have a low computational cost: it should not contain values |
| 32 |
// requiring significant additional computation compared to the normal flow of processing. |
| 33 |
// |
| 34 |
// This is the default level recommended when running the Collector. |
| 35 |
// |
| 36 |
// 4. configtelemetry.Detailed |
| 37 |
// |
| 38 |
// Telemetry associated with this level provides complete coverage of the collector telemetry. |
| 39 |
// |
| 40 |
// The signals associated with this level may exhibit high cardinality, high data volume, or high |
| 41 |
// computational cost. |
| 42 |
package configtelemetry // import "go.opentelemetry.io/collector/config/configtelemetry" |