type PartialSuccess … var _ … // Error implements the error interface. func (ps PartialSuccess) Error() string { … } // Is supports the errors.Is() interface. func (ps PartialSuccess) Is(err error) bool { … } // TracePartialSuccessError returns an error describing a partial success // response for the trace signal. func TracePartialSuccessError(itemsRejected int64, errorMessage string) error { … } // MetricPartialSuccessError returns an error describing a partial success // response for the metric signal. func MetricPartialSuccessError(itemsRejected int64, errorMessage string) error { … }