Skip to content

Commit f046f92

Browse files
committed
code review
1 parent f576a26 commit f046f92

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

config/configtelemetry/doc.go

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
// It enables every component to have access to telemetry level
66
// to enable metrics only when necessary.
77
//
8+
// This document provides guidance on which telemetry level to adopt for Collector metrics.
9+
// When adopting a telemetry level, the developer is expected to rely on this guidance to
10+
// justify their choice of telemetry level.
11+
//
812
// 1. configtelemetry.None
913
//
1014
// No telemetry data should be collected.
@@ -13,29 +17,28 @@
1317
//
1418
// Signals associated with this level cover the essential coverage of the component telemetry.
1519
//
16-
// This is the default level recommended when running the collector.
17-
//
18-
// The signals associated with this level must have low cardinality.
20+
// This is the default level recommended when running the Collector.
1921
//
20-
// The signals associated with this level must represent a small data volume:
21-
// - No more than 5 metrics reported.
22-
// - At most 1 span actively recording simultaneously, covering the critical path.
23-
// - At most 5 log records produced every 30s.
22+
// Signals using this telemetry level can use this guidance:
23+
// * The signals associated with this level must show low cardinality, the number of combinations of dimension values.
24+
// * The signals associated with this level must represent a small data volume. Examples follow:
25+
// - A max cardinality (total possible combinations of dimension values) of 50.
26+
// - At most a span actively recording simultaneously, covering the critical path.
2427
//
25-
// Not all signals defined in the component telemetry are active.
28+
// * Not all signals defined in the component telemetry are active.
2629
//
2730
// 3. configtelemetry.Normal
2831
//
2932
// Signals associated with this level cover the complete coverage of the component telemetry.
3033
//
31-
// The signals associated with this level must control cardinality.
32-
//
33-
// The signals associated with this level must represent a controlled data volume:
34-
// - No more than 20 metrics reported.
34+
// Signals using this telemetry level can use this guidance:
35+
// - The signals associated with this level must control cardinality.
36+
// It is acceptable at this level for cardinality to scale linearly with the monitored resources.
37+
// - The signals associated with this level must represent a controlled data volume. Examples follow:
38+
// - A max cardinality (total possible combinations of dimension values) of 500.
3539
// - At most 5 spans actively recording simultaneously.
36-
// - At most 20 log records produced every 30s.
3740
//
38-
// All signals defined in the component telemetry are active.
41+
// * All signals defined in the component telemetry are active.
3942
//
4043
// 4. configtelemetry.Detailed
4144
//

0 commit comments

Comments
 (0)