Skip to content

Commit 3f9bc53

Browse files
authored
[processorhelper] deprecating unused methods (#11083)
`[Logs|Traces|Metrics]Inserted` was not used in the core/contrib repos, marking them as deprecated. --------- Signed-off-by: Alex Boten <[email protected]>
1 parent 6925a30 commit 3f9bc53

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-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: deprecation
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: processorhelper
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: These funcs are not used anywhere, marking them deprecated.
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [11083]
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: []

processor/processorhelper/obsreport.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ func (or *ObsReport) TracesDropped(ctx context.Context, numSpans int) {
120120
}
121121

122122
// TracesInserted reports that the trace data was inserted.
123+
//
124+
// Deprecated: [v0.109.0] This method was not used in core/contrib and it's unclear when it should have been used.
123125
func (or *ObsReport) TracesInserted(ctx context.Context, numSpans int) {
124126
or.recordData(ctx, component.DataTypeTraces, int64(0), int64(0), int64(0), int64(numSpans))
125127
}
@@ -140,6 +142,8 @@ func (or *ObsReport) MetricsDropped(ctx context.Context, numPoints int) {
140142
}
141143

142144
// MetricsInserted reports that the metrics were inserted.
145+
//
146+
// Deprecated: [v0.109.0] This method was not used in core/contrib and it's unclear when it should have been used.
143147
func (or *ObsReport) MetricsInserted(ctx context.Context, numPoints int) {
144148
or.recordData(ctx, component.DataTypeMetrics, int64(0), int64(0), int64(0), int64(numPoints))
145149
}
@@ -160,6 +164,8 @@ func (or *ObsReport) LogsDropped(ctx context.Context, numRecords int) {
160164
}
161165

162166
// LogsInserted reports that the logs were inserted.
167+
//
168+
// Deprecated: [v0.109.0] This method was not used in core/contrib and it's unclear when it should have been used.
163169
func (or *ObsReport) LogsInserted(ctx context.Context, numRecords int) {
164170
or.recordData(ctx, component.DataTypeLogs, int64(0), int64(0), int64(0), int64(numRecords))
165171
}

0 commit comments

Comments
 (0)