Skip to content

Commit

Permalink
Remove deprecated funcs in consumererror (#7357)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu committed Mar 13, 2023
1 parent 3603130 commit 1da6751
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
11 changes: 11 additions & 0 deletions .chloggen/rmoldapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: breaking

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: consumererror

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Remove deprecated funcs in consumererror

# One or more tracking issues or pull requests related to the change
issues: [7357]
15 changes: 0 additions & 15 deletions consumer/consumererror/signalerrors.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ func NewTraces(err error, data ptrace.Traces) error {
}
}

// Deprecated: [v0.73.0] Use `Data` instead.
func (err Traces) GetTraces() ptrace.Traces {
return err.Data()
}

// Logs is an error that may carry associated Log data for a subset of received data
// that failed to be processed or sent.
type Logs struct {
Expand All @@ -72,11 +67,6 @@ func NewLogs(err error, data plog.Logs) error {
}
}

// Deprecated: [v0.73.0] Use `Data` instead.
func (err Logs) GetLogs() plog.Logs {
return err.Data()
}

// Metrics is an error that may carry associated Metrics data for a subset of received data
// that failed to be processed or sent.
type Metrics struct {
Expand All @@ -92,8 +82,3 @@ func NewMetrics(err error, data pmetric.Metrics) error {
},
}
}

// Deprecated: [v0.73.0] Use `Data` instead.
func (err Metrics) GetMetrics() pmetric.Metrics {
return err.Data()
}

0 comments on commit 1da6751

Please sign in to comment.