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 Permanent function, that is used to indicate that a given error will always be returned in the case that its sources receives the same input.
func PartialTracesError ¶ added in v0.6.0
PartialTracesError creates PartialError for failed traces. Use this error type only when a subset of received data set failed to be processed or sent.
Types ¶
type PartialError ¶ added in v0.6.0
type PartialError struct {
// contains filtered or unexported fields
}
PartialError can be used to signalize that a subset of received data failed to be processed or send. The preceding components in the pipeline can use this information for partial retries.
func (PartialError) GetTraces ¶ added in v0.6.0
func (err PartialError) GetTraces() pdata.Traces
GetTraces returns failed traces.