Skip to content

Commit f576a26

Browse files
committed
[configtelemetry] add guidelines for each level of config telemetry
1 parent 0d6e6bf commit f576a26

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: configtelemetry
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Add guidelines for each level of component telemetry
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [10286]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# Optional: The change log or logs in which this entry should be included.
21+
# e.g. '[user]' or '[user, api]'
22+
# Include 'user' if the change is relevant to end users.
23+
# Include 'api' if there is a change to a library API.
24+
# Default: '[user]'
25+
change_logs: []

config/configtelemetry/doc.go

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,46 @@
44
// Package configtelemetry defines various telemetry level for configuration.
55
// It enables every component to have access to telemetry level
66
// to enable metrics only when necessary.
7+
//
8+
// 1. configtelemetry.None
9+
//
10+
// No telemetry data should be collected.
11+
//
12+
// 2. configtelemetry.Basic
13+
//
14+
// Signals associated with this level cover the essential coverage of the component telemetry.
15+
//
16+
// This is the default level recommended when running the collector.
17+
//
18+
// The signals associated with this level must have low cardinality.
19+
//
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.
24+
//
25+
// Not all signals defined in the component telemetry are active.
26+
//
27+
// 3. configtelemetry.Normal
28+
//
29+
// Signals associated with this level cover the complete coverage of the component telemetry.
30+
//
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.
35+
// - At most 5 spans actively recording simultaneously.
36+
// - At most 20 log records produced every 30s.
37+
//
38+
// All signals defined in the component telemetry are active.
39+
//
40+
// 4. configtelemetry.Detailed
41+
//
42+
// Signals associated with this level cover the complete coverage of the component telemetry.
43+
//
44+
// The signals associated with this level may exhibit high cardinality.
45+
//
46+
// There is no limit on data volume.
47+
//
48+
// All signals defined in the component telemetry are active.
749
package configtelemetry // import "go.opentelemetry.io/collector/config/configtelemetry"

0 commit comments

Comments
 (0)