func MetricPartialSuccessError(itemsRejected int64, errorMessage string) error
MetricPartialSuccessError returns an error describing a partial success response for the metric signal.
func TracePartialSuccessError(itemsRejected int64, errorMessage string) error
TracePartialSuccessError returns an error describing a partial success response for the trace signal.
PartialSuccess represents the underlying error for all handling OTLP partial success messages. Use `errors.Is(err, PartialSuccess{})` to test whether an error passed to the OTel error handler belongs to this category.
type PartialSuccess struct { ErrorMessage string RejectedItems int64 RejectedKind string }
func (ps PartialSuccess) Error() string
Error implements the error interface.
func (ps PartialSuccess) Is(err error) bool
Is supports the errors.Is() interface.
Name | Synopsis |
---|---|
.. |