Skip to content

Commit 57f059b

Browse files
authored
Remove deprecated func types from exporterhelper (#12686)
Signed-off-by: Bogdan Drutu <[email protected]>
1 parent 51a4786 commit 57f059b

File tree

5 files changed

+25
-12
lines changed

5 files changed

+25
-12
lines changed

.chloggen/rm-deprecated-helper.yaml

+25
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: breaking
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: exporterhelper
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Remove deprecated converter types from exporterhelper
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [12686]
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: [api]

exporter/exporterhelper/logs.go

-3
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ func NewLogs(
9797
append([]Option{internal.WithQueueBatchSettings(queuebatch.Settings[Request]{Encoding: logsEncoding{}})}, options...)...)
9898
}
9999

100-
// Deprecated: [v0.122.0] use RequestConverterFunc[plog.Logs].
101-
type RequestFromLogsFunc = RequestConverterFunc[plog.Logs]
102-
103100
// requestConsumeFromLogs returns a RequestConsumeFunc that consumes plog.Logs.
104101
func requestConsumeFromLogs(pusher consumer.ConsumeLogsFunc) RequestConsumeFunc {
105102
return func(ctx context.Context, request Request) error {

exporter/exporterhelper/metrics.go

-3
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ func NewMetrics(
9797
append([]Option{internal.WithQueueBatchSettings(queuebatch.Settings[Request]{Encoding: metricsEncoding{}})}, options...)...)
9898
}
9999

100-
// Deprecated: [v0.122.0] use RequestConverterFunc[pmetric.Metrics].
101-
type RequestFromMetricsFunc = RequestConverterFunc[pmetric.Metrics]
102-
103100
// requestConsumeFromMetrics returns a RequestConsumeFunc that consumes pmetric.Metrics.
104101
func requestConsumeFromMetrics(pusher consumer.ConsumeMetricsFunc) RequestConsumeFunc {
105102
return func(ctx context.Context, request Request) error {

exporter/exporterhelper/traces.go

-3
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ func NewTraces(
9797
append([]Option{internal.WithQueueBatchSettings(queuebatch.Settings[Request]{Encoding: tracesEncoding{}})}, options...)...)
9898
}
9999

100-
// Deprecated: [v0.122.0] use RequestConverterFunc[ptrace.Traces].
101-
type RequestFromTracesFunc = RequestConverterFunc[ptrace.Traces]
102-
103100
// requestConsumeFromTraces returns a RequestConsumeFunc that consumes ptrace.Traces.
104101
func requestConsumeFromTraces(pusher consumer.ConsumeTracesFunc) RequestConsumeFunc {
105102
return func(ctx context.Context, request Request) error {

exporter/exporterhelper/xexporterhelper/profiles.go

-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ func NewProfilesExporter(
9292
append([]exporterhelper.Option{internal.WithQueueBatchSettings(queuebatch.Settings[exporterhelper.Request]{Encoding: profilesEncoding{}})}, options...)...)
9393
}
9494

95-
// Deprecated: [v0.122.0] use exporterhelper.RequestConverterFunc[pprofile.Profiles].
96-
type RequestFromProfilesFunc = exporterhelper.RequestConverterFunc[pprofile.Profiles]
97-
9895
// requestConsumeFromProfiles returns a RequestConsumeFunc that consumes pprofile.Profiles.
9996
func requestConsumeFromProfiles(pusher xconsumer.ConsumeProfilesFunc) exporterhelper.RequestConsumeFunc {
10097
return func(ctx context.Context, request exporterhelper.Request) error {

0 commit comments

Comments
 (0)