Documentation ¶
Overview ¶
Package consumererror provides wrappers to easily classify errors. This allows appropriate action by error handlers without the need to know each individual error type/instance.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPermanent ¶
IsPermanent checks if an error was wrapped with the NewPermanent function, which is used to indicate that a given error will always be returned in the case that its sources receives the same input.
func NewLogs ¶
NewLogs creates a Logs that can encapsulate received data that failed to be processed or sent.
func NewMetrics ¶
NewMetrics creates a Metrics that can encapsulate received data that failed to be processed or sent.
func NewPermanent ¶
NewPermanent wraps an error to indicate that it is a permanent error, i.e. an error that will be always returned if its source receives the same inputs.
Types ¶
type Logs ¶
type Logs struct {
// contains filtered or unexported fields
}
Logs is an error that may carry associated Log data for a subset of received data that failed to be processed or sent.
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics is an error that may carry associated Metrics data for a subset of received data that failed to be processed or sent.
type Traces ¶
type Traces struct {
// contains filtered or unexported fields
}
Traces is an error that may carry associated Trace data for a subset of received data that failed to be processed or sent.