Skip to content

Commit fbc9b27

Browse files
committed
Remove derprecated NewLogs[Request]Exporter funcs
Signed-off-by: Bogdan Drutu <[email protected]>
1 parent 410b4f7 commit fbc9b27

File tree

4 files changed

+25
-18
lines changed

4 files changed

+25
-18
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: 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 derprecated NewLogs[Request]Exporter funcs
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [11661]
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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ func NewLogs(
9090
return NewLogsRequest(ctx, set, requestFromLogs(pusher), append(logsOpts, options...)...)
9191
}
9292

93-
// Deprecated: [v0.112.0] use NewLogs.
94-
var NewLogsExporter = NewLogs
95-
9693
// RequestFromLogsFunc converts plog.Logs data into a user-defined request.
9794
// Experimental: This API is at the early stage of development and may change without backward compatibility
9895
// until https://github.com/open-telemetry/opentelemetry-collector/issues/8122 is resolved.
@@ -148,9 +145,6 @@ func NewLogsRequest(
148145
}, err
149146
}
150147

151-
// Deprecated: [v0.112.0] use NewLogsRequest.
152-
var NewLogsRequestExporter = NewLogsRequest
153-
154148
type logsExporterWithObservability struct {
155149
internal.BaseRequestSender
156150
obsrep *internal.ObsReport

exporter/exporterhelper/metrics.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ func NewMetrics(
9090
return NewMetricsRequest(ctx, set, requestFromMetrics(pusher), append(metricsOpts, options...)...)
9191
}
9292

93-
// Deprecated: [v0.112.0] use NewMetrics.
94-
var NewMetricsExporter = NewMetrics
95-
9693
// RequestFromMetricsFunc converts pdata.Metrics into a user-defined request.
9794
// Experimental: This API is at the early stage of development and may change without backward compatibility
9895
// until https://github.com/open-telemetry/opentelemetry-collector/issues/8122 is resolved.
@@ -148,9 +145,6 @@ func NewMetricsRequest(
148145
}, err
149146
}
150147

151-
// Deprecated: [v0.112.0] use NewMetricsRequest.
152-
var NewMetricsRequestExporter = NewMetricsRequest
153-
154148
type metricsSenderWithObservability struct {
155149
internal.BaseRequestSender
156150
obsrep *internal.ObsReport

exporter/exporterhelper/traces.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ func NewTraces(
9090
return NewTracesRequest(ctx, set, requestFromTraces(pusher), append(tracesOpts, options...)...)
9191
}
9292

93-
// Deprecated: [v0.112.0] use NewTraces.
94-
var NewTracesExporter = NewTraces
95-
9693
// RequestFromTracesFunc converts ptrace.Traces into a user-defined Request.
9794
// Experimental: This API is at the early stage of development and may change without backward compatibility
9895
// until https://github.com/open-telemetry/opentelemetry-collector/issues/8122 is resolved.
@@ -148,9 +145,6 @@ func NewTracesRequest(
148145
}, err
149146
}
150147

151-
// Deprecated: [v0.112.0] use NewTracesRequest.
152-
var NewTracesRequestExporter = NewTracesRequest
153-
154148
type tracesWithObservability struct {
155149
internal.BaseRequestSender
156150
obsrep *internal.ObsReport

0 commit comments

Comments
 (0)